what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
}
Answer Posted / 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 |
Post New Answer View All Answers
How #define works?
What are the different types of constants?
Why is %d used in c?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Is the exit() function same as the return statement? Explain.
a c code by using memory allocation for add ,multiply of sprase matrixes
What is a substring in c?
What are the keywords in c?
explain what is a newline escape sequence?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Compare array data type to pointer data type
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What are the c keywords?