Guess the output #1
char name[] = "rculock.com";printf("%d, %d", strlen(name), sizeof(name));
Compiling this code produces following output. click on below icon to see the output.
Guess the output
char name[] = "rculock";
printf("%.3s", name);
Compiling this code produces following output. click on below icon to see the output.
Guess the output
char x[] = "Hello";char y[] = "World";
printf("%s", x + y);
Compiling this code produces following output. click on below icon to see the output.
Guess the output
int main(){ char text[] = "C\0program”;
printf(“%s”,text);
return 0}
Compiling this code produces following output. click on below icon to see the output.
Question
Which string function finds the length upto which two strings are identical?
click on below icon to see the Answer.
©2023-2024 rculock.com