You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
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


Failure is the first step towards seccess.

2015-09-16 05:10:59

Advertisement
Ads By Google

Re: C Language Arrays Program:



Board footer