What is the output for the following program

#include<stdio.h>
main()
{
char a[5][5],flag;
a[0][0]='A';
flag=((a==*a)&&(*a==a[0]));
printf("%d\n",flag);
}

Answer Posted / sri

output is 1 but this prg display 2 warning (ie) Nonportable
pointer comparsion

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function prototype?

776


Why is c called c not d or e?

833


Explain about C function prototype?

803


write a program to find out prime number using sieve case?

1844


Is a pointer a kind of array?

817


why do some people write if(0 == x) instead of if(x == 0)?

828


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

1823


Can you write a programmer for FACTORIAL using recursion?

801


Why doesnt that code work?

779


What is union in c?

839


What is the use of printf() and scanf() functions?

812


Why c is called a middle level language?

813


Can you please explain the difference between syntax vs logical error?

905


What is printf () in c?

773


What do the functions atoi(), itoa() and gcvt() do?

903