Find the O/p of the following
struct node
{
char *name;
int num;
};
int main()
{
struct node s1={"Harry",1331};
struct node s2=s1;
if(s1==s2)
printf("Same");
else
printf("Diff");
}
Answer Posted / sinchan garai
this gives a compile time error.because the coditional
statement "if(s1==s2)" written in the code is not allowable
in C.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is a sequential access file?
Is a house a mass structure?
Write the control statements in C language
Is there any data type in c with variable size?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What are loops c?
Why is c called a mid-level programming language?
Why do we use stdio h and conio h?
What is exit() function?
Why does not c have an exponentiation operator?
What is the use of function overloading in C?
What is the difference between local variable and global variable in c?
How the c program is executed?
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!+....
why do some people write if(0 == x) instead of if(x == 0)?