Question
#include * In the following code please write the syntax for
* assing a value of 10 to field x of s and id_no 101 of s
*/
struct {
int x;
int y;
union {
int id_no;
char *name;
}b;
}s,*st;
main()
{
st = &s;
st-x=10;
st-b.id_no = 101;
printf("%d %d
",s..x,s.b.id_no);
}
/*

Answers

The answer is st-x=10;
* st-b.id_no=101;
*/   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q State the equation to measure the proportion (P) of receptors occupied using the [A] (concentration of the drug) and its Kd.
  • Q Open Archives Initiatives Standard
  • Q If you travel from A to B @ 40kms/hr. What should be your return speed to make an average speed of 80 km/hr.?
  • Q Finance Commission Chairman is appointed for a period of :
  • Q There are how many members in Karnataka Vidhana Parishat?
  • Q Tidjane Thiam became the first black FTSE 100 CEO when appointed to head what UK financial services company?
  • Q Situation - You have 3 cube for which you create multiprovider and a report. The data doesn't show up in the report. What went wrong
  • Q Under Air Force Instruction (AFI) 36-3208, Administrative Separation of Airmen, before an Airman can request a discharge in lieu of court-martial, (A)Charges must be preferred against the Airman and a punitive discharge authorized. (B)Charges must be referred against the Airman and a punitive discharge authorized.
  • Q How long is someone infectious after a viral infection?
  • Q Which one of the FRs was described by Dr. B. R. Ambedkar as the ‘Heart and Soul of the Constitution’? [Right to]
  • Q What is syntax for creating triggers ?