You are not logged in.

#1 2015-09-16 04:30:06

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Fundamentals Code:

C Programming Quizzes C Language Fundamentals

Directions:
short testarray[4][3] = { {1}, {2,3}, {4,5,6}};
printf("%d", sizeof(testarray));

Question:
Assuming a short is two bytes long, what will be printed by the above code?

Option A):
1
Option B):
6
Option C):
12
Option D):
24

Correct Answer is Option D):
24


Failure is the first step towards seccess.

2015-09-16 04:30:06

Advertisement
Ads By Google

Re: C Language Fundamentals Code:



\n

Board footer