>
Exams
>
Programming and Data Structure
>
Programming in C
>
what will be the output of the following program a
Question:
What will be the output of the following program assuming that the array begins at location 1002?
#include<stdio.h>
void main()
{int a[2] [3] [4] ={ {1,2,3,4,5,6,7,8,9,1,1,2,}, {2,1,4,7,6,7,8,9,0,0,0,0}};
printf("/n%u%u%u %d", a, *a, **a, ***a);
CUET (PG) - 2023
CUET (PG)
Updated On:
Mar 16, 2024
1002 1002 1004 1
1002 1004 1006 1
1002 1004 1004 1
1002 1002 1002 1.
Hide Solution
Verified By Collegedunia
The Correct Option is
D
Solution and Explanation
The correct option is(D): 1002 1002 1002 1
Download Solution in PDF
Was this answer helpful?
0
0
Top Questions on Programming in C
A table student has two text fields defined as below:
Name_1 varchar(20),
Name2 char(20)
If Name_1 stores value as ‘Ana' and Name2 stores value as ‘Anuj', then Name_1 will consume characters space and Name2 will consume characters space.
CUET (UG) - 2023
Computer Science
Programming in C
View Solution
Select mid("Computerscience",8); returns the output:
CUET (UG) - 2023
Computer Science
Programming in C
View Solution
Match List I with List II
List I
List II
A
printf("%d", size of (3.14));
I
5
B
Union A (intx, float y,} printf("%d", size of (A));
II
4
C
Invalid ostruct B {char x; double y;}; C. 2 printf("%d", size of (B));pcode
III
2
D
printf("%d", size of ('1'));
IV
8
CUET (PG) - 2023
Programming and Data Structure
Programming in C
View Solution
View All
Questions Asked in CUET PG exam
Find out the degree of the differential equation
\(\frac {d^2t}{ds^2}+(\frac {dt}{ds})^2+2t=0\)
CUET (PG) - 2023
Differential Equations
View Solution
The surface area of the sphere x
2
+ y
2
+ z
2
= 9 lying inside the cylinder x
2
+ y
2
= 3y is
CUET (PG) - 2023
Surface Area of Cube, Cuboid and Cylinder
View Solution
The Ombudsman in a newspaper organisation represents the point of view of the ___.
CUET (PG) - 2023
Journalism
View Solution
The orthogonal trajectories of the family of curves y =
\(ax^3\)
is
CUET (PG) - 2023
Curves
View Solution
The minimum distance of the point (3, 4, 12) from the sphere x
2
+ y
2
+ z
2
= 1 is
CUET (PG) - 2023
Coordinate Geometry
View Solution
View More Questions