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=0,k=0,word=0;
char a[30],temp;
clrscr();
printf("ENTER THE STRING: ");
do
a[i++]=getchar();
}while(a[i-1]!='\n');
a[i]='\0';
printf("%s",a);
for(i=0;a[i]!='\0';i++)
if(a[i]==' ' || a[i]=='\n')
word++;
temp=a[k];
a[k]=a[i-1];
a[i-1]=temp;
k=i+1;
}
if(word%2==0)
printf("\nNO OF WORDS ARE %d",word);
getch();
OUTPUT
-ENTER THE STRING: KAMLESH
AMLESHK
MLESHKA
LESHKAM
ESHKAML
SHKAMLE
HKAMLES
KAMLESH
Is there any difficulty with the following : char*a=NULL; char& p = *a;? A: The result is indeterminate. You must never do this. A reference has to always refer to some object.
A more advanced data type is the structure; here we can define a template as a collection of different variables e.g. struct birthdate { int month; int day;
find area under the curve y=f(x) between x=a &y=b integrate y=f(x)
program to check whether a given point lies inside a rectangle or not
write c language program that shows stack overflow..
Write a Program that illustrate Command Line Parameters? main(int argc, char *argv[]) { int i; for(i = 0; i printf("arg %d: %s\n", i, argv[i]); return 0; }
If quicksort is so quick, why bother with anything else? If bubble sort is so bad, why even mention it? For that matter, why are there so many sorting algorithms? Your mission (sho
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_poin
Explain the Bit Wise Operations? C language in particular was created to make it easier to write operating systems. The objective was to have a language that provided excellent
how to write a program using arrays
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