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
There are ''''n'''' ants on a ''''n+1'''' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are mov
C program to string compression: Write a program to define a sting and all operations on string. void main() {
Change the matrix program (program 3) slightly. Overload == operator to compare two matrices to be added or subtracted. i.e., whether the column of first and the row of second
HOW THE C PROGRAM CODING IMPLEMENTED DY ITSELF UNDERSTANDING . ALSO HOW I CAN A BECOME A GOOD PROGRAMMER IN C WHAT I DO FOR GOOD PROGRAMMING ,TELL ME HOW C CODING DEVELOP DY ITSELF
Prepare Windows Shell Extension Project Description: Skills required are C++ Programming, Windows Desktop, Windows API
A: Use operator overloading to present a friend right-shift operator, operator>>. It is similar to the output operator, except the parameter doesn't contain a const: "Fred&" instea
Explain zero based addressing. - Array subscripts always start at zero. - These subscript values are used to identify elements in the array. - As subscripts start at 0, a
The files are meteorological radar data whose decompression is badly needed for relative study. Please contact Kathy Lee (Email: ; Cell phone: 0086 15701799056) or Mr. Zhu (Email:
Program to Open a file in C++: int main() { char ch; ifstream f1 ("OLDFILE.TXT"); ofstream f2 ("NEWFILE.TXT");
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. #include float start
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