int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
Answers were Sorted based on User's Feedback
Answer / sukant
The syntax for the if statement is also not correct..
The conditional assignment includes two == rather than a single =...
so,, the if statement wont consider that as a conditional statement and come out of it..
And, it will give an error in the printf(i=3); as the syntax is not apt.
Is This Answer Correct ? | 0 Yes | 0 No |
What is sizeof c?
difference between i++* and *++i
How many types of sorting are there in c?
application attempts to perform an operation?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Are there constructors in c?
what is the difference between #include<stdio.h> and #include"stdio.h" ?
How to access or modify the const variable in c ?
16 Answers HCL, HP,
printf("%d",(printf("Hello")); What it returns?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Explain how are 16- and 32-bit numbers stored?
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.