How will you print \n on the screen?

Home | Discussion Forum

How will you print \n on the screen?

View More Related Question

2) What is the output of this C code?

#include <stdio.h>
int main()
char str[11] = "hello";
char *str1 = "world";
strcat(str, str1);
printf("%s %d", str, str[10]);

3) Which of the following function is more appropriate for reading in a multi-word string?

4) What will be the output of the following program?

void main()
char str1[] = "abcd";
char str2[] = "abcd";

5) If the two strings are identical, then strcmp() function returns

UP Gk Online Test

Study 2 Online Says....
Kindly log in or signup.