Question: Which of the following are valid? int array [ 2 0 ] ; printf ( % d , array [ 0 ] )
Which of the following are valid?
int array;
printfd
array;
printfd
array;
printfd
array;
printfd
array;
What will be the output of this code?
printfc getchar;
printfc getchar;
user keyboard input is ab
unknown
a
ab
ab ab
Which of the following are valid?
int v ;
int p;
p &v;
p p ;
p p ;
p p ;
v p ;
Which of the following correctly declares an
array of strings?
char strings;
char strings;
char strings malloc;
char strings mallocsizeofchar;
char strings mallocsizeofchar;
Which of the following are valid?
int v; char c;
scanfd v;
scanfc &c;
scanfc &v;
scanfd &c;
Which of the following are valid?
int v; char c;
scanfd v;
scanfc &c;
scanfc &v;
scanfd &c;
Consider the following code, what will be
printed?
int array;
int sum i;
for ;i;i
sum arrayi;
printfd sum;
unknown because sum was never initialised
unknown; index out of array bounds
Consider the following code, what will be
printed?
int array;
int sum i;
for ;i;i
sum arrayi;
printfd sum;
unknown because sum was never initialised
unknown; index out of array bounds
Which of the following will allow you to open
a file for reading?
FILE f;
f fopenfilenamew;
f fopenfilenamea;
f fopenfilenamer;
f fopenfilenamerb;
Which of the following will allow you to open
a file for reading?
FILE f;
f fopenfilenamew;
f fopenfilenamea;
f fopenfilenamer;
f fopenfilenamerb;
How many times does the following code
print Hello
int i;
for ; i;
printfHello;
i;
infinity
How many times does the following code
print Hello
int i;
for ; i;i;
printfHello;
infinity
What will i be after the following code?
int i ;
i i;
false
What will i be after the following code?
int i ;
i i;
false
What will i be after the following code?
int i ;
i i;
false
What will b be after the following code?
int a b;
if abab
b;
What will b be after the following code?
int a b;
if abab
b;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
