You are not logged in.

#1 2015-09-16 05:10:56

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

C Language Arrays Program:

C Programming Quizzes C Language Arrays And Strings

Directions:
#include
void main()
{
    float arr[] = {12.4, 2.3, 4.5, 6.7};
    printf("%d", sizeof(arr)/sizeof(arr[0]));
}

Question:
What will be the output of the program?

Option A):
6
Option B):
7
Option C):
5
Option D):
4

Correct Answer is Option D):
4


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

2015-09-16 05:10:56

Advertisement
Ads By Google

Re: C Language Arrays Program:



Board footer