C Programming and Problem Solving
Questions 331 to 340
331.
|
C was
designed by
|
||||||||||
Determine
which of the following is not
valid variable
|
|||||||||||
How much
memory allocated for long long int?
|
|||||||||||
Find the
output of the following program
int main()
{
int i=5,j;
j=!i;
Printf(“%d”,j);
}
|
|||||||||||
Find the
output of the following program
int
mian()
{
int
a=10,b=20,c=30;
a=b==c;
printf(“%d%d%d”,a,b,c);
}
|
|||||||||||
Find the
output of the following program
int
main()
{
int
a=10;
printf(“%d%d%d%d”,a++,++a,a+1,++a);
}
|
|||||||||||
Compound
statement is enclosed within which of the following the following characters?
|
|||||||||||
Find the
output of the following program
int
main()
{
float
f1=10.3;
printf(“%f”,f1);
}
|
|||||||||||
Find the
output of the following program
int
main()
{
int
x=5;
x=++x;
printf(“%d”,x);
}
|
|||||||||||
What is
the value of the ‘a’ in the expression:
a = (b=10, b*b);?
|
Answers
331.
|
Answer : (a)
Reason : C
was developed by Dennis Ritche in 1972.
|
Answer : (e)
Reason : All
the variables start with alphabetic or _(underscore).
|
|
Answer : (b)
Reason : size
of long long int is 8.
|
|
Answer : (a)
Reason : !5
value is 0(false).
|
|
Answer : (e)
Reason : output
of a=b==c is 0
|
|
Answer : (c)
Reason : In
printf values are printed from right to left
|
|
Answer : (b)
Reason : Compound
statements enclosed in {}
|
|
Answer : (e)
Reason : default
precision value of float is 6
|
|
Answer : (d)
Reason : ++x
is pre increment
|
|
Answer : (c)
Reason : output
of b*b is stored into a.
|
thank you.
ReplyDeletec++ tutorial
java tutorial
For Complete explanation of C++ please visit - SchoolingAxis
ReplyDelete