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

Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

696


What is the difference between ‘g’ and “g” in C?

2497


Are there namespaces in c?

563


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

1901


where are auto variables stored? What are the characteristics of an auto variable?

584






What is const and volatile in c?

561


Which node is more powerful and can handle local information processing or graphics processing?

819


What is the difference between c &c++?

641


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

683


How do I use strcmp?

632


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1120


What does do in c?

601


List the variables are used for writing doubly linked list program.

1615


Is null valid for pointers to functions?

603


How can I manipulate individual bits?

604