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 |
to get a line of text and count the number of vowels in it
if the total selling price of 15 items and the total profit earned on them is input through the keyboard, write a program to find the cost price of one of the item
how can i get output like this? 1 2 3 4 5 6
Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001
declare afunction pointer to int printf(char *)?
to convert a string without using decrement operater and string functions
What is pointer to pointer in c?
Which node is more powerful and can handle local information processing or graphics processing?
FILE PROGRAMMING
How to swap two values using a single variable ? condition: Not to use Array and Pointer ?
Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table
what is difference between strcmp & palindrome?