int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
Answer Posted / asit mahato
The conditional test if(i=4) is true for evrey non zero
value of i.As here i=3 here execute the if statement.But
printf can't print nothing because we have not mation the
proper syntax of printf.if we replace
printf(i=4)by printf("i=4")
it will give the following output:
i=4
Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
Explain what is the benefit of using an enum rather than a #define constant?
Can a variable be both const and volatile?
What is function what are the types of function?
What is d scanf?
What is the purpose of type declarations?
What is scope rule of function in c?
What is the scope of local variable in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is the use of parallelize in spark?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Can i use “int” data type to store the value 32768? Why?
Why flag is used in c?
how can use subset in c program and give more example
What is operator precedence?
Differentiate between ordinary variable and pointer in c.