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
Why calloc is better than malloc?
Why does this code crash?
What is a lvalue
Explain b+ tree?
what are # pragma staments?
Describe the order of precedence with regards to operators in C.
Explain union.
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Explain how can a program be made to print the name of a source file where an error occurs?
What is a pointer and how it is initialized?
How would you obtain the current time and difference between two times?
What does c mean before a date?
What is the difference between int main and void main?
explain what is an endless loop?
Is c compiled or interpreted?