Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
void main()
{
int i,j,len=0,word=1,lens=0,ll=1;
char str[100];
clrscr();
printf("ENTER THE STRING: ");
gets(str);
for(i=0;str[i]!='\0';i++)
len++;
if(str[i]==' ')
word++;
else
lens++;
}
printf("CHARACTERS WITH SPACE : %d\n",len);
printf("CHARACTERS WITHOUT SPACE : %d",lens);
printf("\n WORDS : %d",word);
getch();
OUTPUT :
ENTER THE STRING: KAMLESH MENGAR
CHARACTERS WITH SPACE : 14
CHARACTERS WITHOUT SPACE : 13
WORDS : 2
A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci
C Program for STRING ADDRESS #include stdio.h> #include conio.h> #include string.h> void main() { char *name; int length; cha
(i) Vilsmeir reaction
Question 1 Write a program that accepts two numbers from the user and swaps the two numbers without using a temporary variable Question 2 Write a program that accepts a 3x
Define a user-defined data type (struct) called Car to represent a car in the context of a car dealership database. Car must have at least the following characteristics: Make Model
Program is to store all ASCII char into a file: void main() { ofstream fout("ascii.txt"); int i,n=256; for(i=1;i { fout }
Write a program to sort an array of strings. Use new and delete operators. Write a program to find the factorial of a number using recursion. If we do not accept the number
Determine the size of an interger data type without using sizeof() function? A: #include int main() { int *i ; int *j = i + 1; cout }
Talking to IO boards inside a computer or microcontroller depends upon the principles used by the microprocessor to address physical devices. On Motorola systems all devices connec
Can copy constructor admit an object of the same class as parameter, rather than reference of the object?
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd