You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-16 04:30:06

Advertisement
Ads By Google

Re: C Language Fundamentals Code:



Board footer