Questions

Q:

If the following structure is written to a file using fwrite(), can fread() read it back successfully?

struct emp

{

    char *n;

    int age;

};

struct emp e = { "Sujay",15};

FILE *fp;

fwrite (&e, sizeof (e), 1, fp);

Answer

No, since the structure contains a char pointer while writing the structure to the disk using fwrite() only the value stored in the pointer n would get written. When this structure is read back the address would be read back but it is quite unlikely that the desired string would be present at this address in memory

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2711
Q:

Article I of the Constitution of India declares India as

A) Fedaral State B) Quasi Federal State
C) Unitary State D) Union of States
 
Answer & Explanation Answer: D) Union of States

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

2 2711
Q:

Which of the following statements about GDP is correct?

A) Nominal GDP values production at constant prices, whereas real GDP values production at current prices. B) Nominal GDP values production at market prices, whereas real GDP values production at the cost of the resources used in the production process.
C) Nominal GDP consistently underestimates the value of production, whereas real GDP consistently overestimates the value of production. D) Nominal GDP values production at current prices, whereas real GDP values production at constant prices.
 
Answer & Explanation Answer: D) Nominal GDP values production at current prices, whereas real GDP values production at constant prices.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 2711
Q:

Where is the Nandi hills located?

 

 

A) Bihar B) Gujarat  
C) Karnataka D) Rajasthan  
 
Answer & Explanation Answer: C) Karnataka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

1 2710
Q:

Which of the following national parks of India is also a UNESCO world heritage site ?

A) Keoladeo national park B) Jim Corbett national park
C) Namdapha national park D) Keibul Lamjao national park
 
Answer & Explanation Answer: A) Keoladeo national park

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

8 2710
Q:

Which European Country is the guarantor of Bank of Central African States

A) UK B) France
C) Germany D) Switzerland
 
Answer & Explanation Answer: B) France

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

3 2710
Q:

Who was called the ' Flying Sikh '

A) Ajmer Singh B) Makhan Singh
C) Shamsher Singh D) Milkhan Singh
 
Answer & Explanation Answer: D) Milkhan Singh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

4 2709
Q:

Which one of the following is an abiotic and renewable resource

A) Iron ore B) Livestock
C) Water D) Forests
 
Answer & Explanation Answer: C) Water

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 2709