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
→
Arrays
→
Arrays in Arrays
→
What will be the output of the program ? #include...
1.
What will be the output of the program ? #include int main() { int arr[1]={10}; printf("%d n", 0[arr]); return 0; }
A.
1
B.
10
C.
6
Answer» C. 6
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Consider the declaration char street[10] = "abcdefghi"; Choose the correct remark(s)
A file is preferable to an array of structures because
Pick the correct answers if x is an one dimensional array, then
Choose the correct statements
While sorting a set of names, representing the names as an array of pointers is preferable to representing the names as a two dimensional array of characters because
If arr is a two dimensional array of 10 rows and 12 columns, then arr (5) logically points to the
A set of names can be represented as a
Which of the following concepts make extensive use of arrays?
When does the ArrayIndexOutOfBoundsException occur?
What is the output of the following piece of code? public class array { public static void main(String args[]) { int []arr = {1,2,3,4,5}; System.out.println(arr[5]); } }
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