code for reverse alternate words from astring
Answer / rohit
#include<stdio.h>
#include<conio.h>
int main()
{
char string[30]="hoow are you?";
static char stoken[15][10];
int i,j,k;
j=0;k=0;
for(i=0;string[i]!='\0';i++,k++)
{
if(string[i]==' ')
{
j++;
k=0;
}
else
{
stoken[j][k]=string[i];
}
}
for(i=j;i>=0;i--)
printf("%s\n",stoken[i]);
getch();
return 1;
}
| Is This Answer Correct ? | 6 Yes | 23 No |
what is the code to display color fonts in the output?
What is the c language function prototype?
Are enumerations really portable?
Please provide question papers of NATIONAL INFORMATICS CENTRE for Scientific officer
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Write a program of advanced Fibonacci series.
Explain the difference between structs and unions in c?
What is the use of sizeof () in c?
What is the maximum no. of arguments that can be given in a command line in C.?
What is pointer to pointer in c language?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
is forign key will be unique key any table or not?