Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- //LABACT#4
- void main()
- {
- char theString[100];
- int iCount=0;
- int loopPJ=0;
- printf("Enter String:");
- gets(theString);
- while(theString[iCount]!='\0')
- {
- if(theString[iCount]!=' ')
- loopPJ++;
- iCount++;
- }
- //printf("The String Entered is %s",theString);
- printf("\nThe Actual length of the string is %d",loopPJ);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement