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 are 3 types of structures?

582


What are the 5 types of organizational structures?

539


What are the ways to a null pointer can use in c programming language?

581


How to implement a packet in C

2383


Why can't I perform arithmetic on a void* pointer?

626






Can a variable be both const and volatile?

661


What are the c keywords?

738


Define recursion in c.

690


Can i use “int” data type to store the value 32768? Why?

742


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

605


Why do we use header files in c?

569


Is c easy to learn?

550


code for quick sort?

1606


What is structure and union in c?

584


What is the importance of c in your views?

582