what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
}
Answer Posted / 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 |
Post New Answer View All Answers
Explain what are the different data types in c?
When can a far pointer be used?
What is #include cctype?
What is integer constants?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is void main () in c?
What does & mean in scanf?
What is preprocessor with example?
What is operator promotion?
Why c is procedure oriented?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is binary tree in c?
What is the use of printf() and scanf() functions?
Explain what is wrong with this statement? Myname = ?robin?;
What are two dimensional arrays alternatively called as?