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 is this loop always executing once?
What are pointers in C? Give an example where to illustrate their significance.
How do you list a file’s date and time?
What does %p mean?
How can I write functions that take a variable number of arguments?
What do you understand by friend-functions? How are they used?
What is the difference between far and near ?
Can you mix old-style and new-style function syntax?
Explain what is wrong in this statement?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
When we use void main and int main?
How can I do serial ("comm") port I/O?
What is the equivalent code of the following statement in WHILE LOOP format?
Why is structure important for a child?
What is self-referential structure in c programming?