Question: Which of the following is not a valid mode for opening a file?
A
B
C
D
E
r
B
w
C
a
D
r+
E
i
Note: Not available
char books[][40]={ "The Little World of Don Camillo", "To Kill a Mockingbird", "My Family and Other Animals", "Birds, Beasts and Relatives" };what would be the output of printf("%c",books[2][5]);?
char *str1 = "Hello World"; strcat(str1, '!'); printf("%s", str1);
void main() { char arr[] = {'R','A','M','\0'}; printf("%d",strlen(arr)); }
int a[8] = {1,2,3,4,5,6,7,0};what would be the output of printf("%d",a[4]); ?
int a[ ] = { 1, 2, 3, 4, 5, 6 };In another file, file2.c, the following code snippet is written to use the array a:
extern int a[]; int size = sizeof(a);What is wrong with the above code snippet?
main() { char *s="Hello World"; char s1[20], s2[20]; int len = sscanf(s,"%s",s1); printf("%s : %d", s1, len); }
char books[][40]={ "The Little World of Don Camillo", "To Kill a Mockingbird", "My Family and Other Animals", "Birds, Beasts and Relatives" };what would be the output of printf("%s",books[3]);?