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
where are auto variables stored? What are the characteristics of an auto variable?
What are unions in c?
What are the advantages of using macro in c language?
Is it possible to execute code even after the program exits the main() function?
Explain 'bus error'?
Is stack a keyword in c?
What is the purpose of scanf() and printf() functions?
Are enumerations really portable?
What are the functions to open and close file in c language?
How #define works?
What does 3 periods mean in texting?
What is the scope of local variable in c?
What is volatile variable how do you declare it?
Why #include is used in c language?
Is c still relevant?