MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
C Program
→
C Fundamentals
→
int a[5] = {1,2,3}What is the value of a[4]?
1.
int a[5] = {1,2,3}What is the value of a[4]?
A.
3
B.
1
C.
2
D.
0
E.
Garbage Value
Answer» E. Garbage Value
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
The function sprintf() works like printf(), but operates on ..........
What will be the correct output of the following program?#includevoid main(){char str[] = "C EXAMINATION", rev[17];int i = strlen(str), j=0;for( ; i>=0; rev[j++] = str[i--])rev[j] =str[j] ;puts(rev);}
What will be the output of the program ?#include#includevoid main(){char str1[20] = "Hello", str2[20] = " World";printf("%s", strcpy(str2, strcat(str1, str2)));}
What will be the output of the program ?#include#includevoid main(){char str[] = "Exam\0Veda";printf("%s", str);}
What will be the output of the following program?void main(){char str1[] = "abcd";char str2[] = "abcd";if(str1==str2)printf("Equal");elseprintf("Unequal");}
What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?#includevoid main(){int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0};printf("%u, %u", a+1, &a+1);}
What will be the output of the following code?void main(){int a[10];printf("%d %d", a[-1], a[12]);}
Which of the following statements are correct about the program below?#includevoid main(){int size, i;scanf("%d", &size);int arr[size];for(i=1; i
Which of the following is correct way to define the function fun() in the below program?#includevoid main(){int a[3][4];fun(a);}
What will be the output of the program if the array begins at address 65486?#includevoid main(){int arr[] = {12, 14, 15, 23, 45};printf("%u, %u", arr, &arr);}
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies