what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
}
Answers were Sorted based on User's Feedback
Answer / himanshu goel
fail
because here if is taking 0 boolean value means condition
becomes false and else will be executed
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / srikanth patchava
fail
if check value is thear or not ..if its thear it will got
frist printf other wise it will goto second printf
| Is This Answer Correct ? | 0 Yes | 0 No |
though sbi was nationalized why its not comes under nationalized banks and its comes under publicsector banks
3 Answers State Bank Of India SBI,
What is getch () for?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Write a program to accept a character & display its corrosponding ASCII value & vice versa?
Explain what is a 'locale'?
. Write a program to get a string and to convert the 1st letter of it to uppercase
explain what is an endless loop?
write a program to print sum of each row of a 2D array.
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is a const pointer?
how to print a statement in c without use of console statement ,with the help of if statement it should print