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 / jaya prakash

0

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bss in c?

596


How can I dynamically allocate arrays?

585


What is a header file?

629


What are operators in c?

575


What's the best way of making my program efficient?

619






The file stdio.h, what does it contain?

662


What are pointers?

624


Is there a way to switch on strings?

610


What does %p mean?

586


What does c value mean?

616


What is the advantage of an array over individual variables?

728


How to declare pointer variables?

680


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

608


Is that possible to add pointers to each other?

892


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15043