Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why & is used in c?

1197


please explain every phase in the "SDLC" in the dotnet.

2624


What is pointers in c with example?

1087


Once I have used freopen, how can I get the original stdout (or stdin) back?

1080


What is I ++ in c programming?

1125


Explain how do you sort filenames in a directory?

1043


How do I get an accurate error status return from system on ms-dos?

1133


What does 4d mean in c?

1506


What are dangling pointers in c?

1247


How do you define CONSTANT in C?

1286


List the difference between a "copy constructor" and a "assignment operator"?

1026


What is #error and use of it?

1287


What is NULL pointer?

1107


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

1067


Explain how can I right-justify a string?

1052