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");
}



Find the O/p of the following struct node { char *name; int num; }; int main..

Answer / 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

More C Interview Questions

What is the difference between abs() and fabs() functions?

0 Answers  


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

0 Answers   Wilco,


how to find the kth smallest element in the given list of array elemnts.

8 Answers   Silicon,


What is the total generic pointer type?

0 Answers  


What is the difference between void main and main in c?

0 Answers  






i want to know the procedure of qualcomm for getting a job through offcampus

0 Answers   HCL,


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

0 Answers   KPIT,


How do you determine whether to use a stream function or a low-level function?

0 Answers  


what is bit rate & baud rate? plz give wave forms

0 Answers  


Explain what is gets() function?

0 Answers  


Why is c platform dependent?

0 Answers  


how to set Nth bit of variable by using MACRO

3 Answers   HCL,


Categories