Q : Write a ‘C’ program to count number of words in a string.
Solution :
#include<stdio.h>
void main()
{
char
str[50];
Roll | Name | Subject | |
---|---|---|---|
101 | Sona | Hindi | |
102 | Mona | Art | |
103 | Sita | Maths | |
104 | Anita | English | |
105 | Babita | Hindi |