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 |
Tell us two differences between new () and malloc ()?
prototype of sine function.
what is the use of using linked list and array?
24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?
write a program to rearrange the array such way that all even elements should come first and next come odd
why we are using semicolon at the end of printh statment
What are c identifiers?
Can main () be called recursively?
How can you find the exact size of a data type in c?
how to find out the reverse number of a digit if it is input through the keyboard?
What does %c do in c?
What are the different types of pointers used in c language?