write a c program to Reverse a given string using string
function and also without string function
Answer / puneet mittal
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char string[50],reverse[50];
int i,len=0;
printf("Enter the string = ");
gets(string);
strrev(string);
printf("\n reverse of entered string by using string
function : %s",string);
for(i=0;i<50;i++)
{
if(string[i]!='\0')
len++;
}
for(i=0;i<len;i++)
{
reverse[i]==string[len-i];
}
printf("\n\nreverse of entered sting without using
string function :%s ",reverse);
getch();
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false
main() { printf("%d", out); } int out=100;
void ( * abc( int, void ( *def) () ) ) ();
How to return multiple values from a function?
main() { if ((1||0) && (0||1)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above
main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }
Cau u say the output....?
what is the code of the output of print the 10 fibonacci number series
program to find magic aquare using array
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(ā%dā, i); }
How can I Create a C program in splitting set of characters to specific subsets. Example: INPUT SET OF CHARACTERS: Therefore, my dear brothers and sisters, stand firm. Let nothing move you. Always give yourselves fully to the work of the Lord, because you know that your labor in the Lord is not in vain. SPLIT INTO HOW MANY CHARACTERS PER SUBSETS: 10 OUTPUT: Therefore, my dear b rothers an d sisters, stand fir m. Let not hing move you. Alway s give you rselves fu lly to the work of t he Lord, b ecause you know that your labo r in the L ord is not in vain.