C Programming :: Strings
-
What will be the output of the program ?
#include
int main() { char str1[20] = "Hello", str2[20] = " World"; printf("%s\n", strcpy(str2, strcat(str1, str2))); return 0; } -
What will be the output of the program ?
#include
-
What will be the output of the program ?
#include
-
What will be the output of the program ?
#include
-
What will be the output of the program ?
#include
int main() { char str[] = "Fresher\0\GATE\0"; printf("%s\n", str); return 0; } -
What will be the output of the program If characters 'a', 'b' and 'c' enter are supplied as input?
#include
int main() { void fun(); fun(); printf("\n"); return 0; } void fun() { char c; if((c = getchar())!= '\n') fun(); printf("%c", c); } -
What will be the output of the program ?
#include
int main() { printf("Fresher, "GATE/n"); return 0; } -
What will be the output of the program ?
#include
int main() { char str[7] = "FresherGATE"; printf("%s\n", str); return 0; } -
What will be the output of the program ?
#include
int main() { char *names[] = { "Suresh", "Siva", "Sona", "Baiju", "Ritu"}; int i; char *t; t = names[3]; names[3] = names[4]; names[4] = t; for(i=0; i4; i++) printf("%s,", names[i]); return 0; } -
What will be the output of the program ?
#include
int main() { char str[] = "Fresher0\GATE\0"; printf("%d\n", strlen(str)); return 0; }