Questions

Q:

Point out the error, if any, in the following program.

main()

{

    int ( *p )() = fun;

    ( *P ) ();

}

fun ()

{

    Printf ( "\nLoud and clear" );

Answer

Here we are initalising the function pointer p to the address of the function fun(). But during this initialisation the function has not been defined. Hence an error.


To eliminate this error add the prototype of the fun() before declaration of p, as shown below:


extern int fun();    or simply  int fun();

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2228
Q:

Other things equal an improvement in productivity will

A) shift the aggregate demand curve to the left B) shift the aggregate supply curve to the right
C) increase the equilibrium price level D) shift the aggregate supply curve to the left
 
Answer & Explanation Answer: B) shift the aggregate supply curve to the right

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 2228
Q:

Where was christianity founded?

A) Jerusalem B) Bethlehem
C) Palestine D) None of the above
 
Answer & Explanation Answer: A) Jerusalem

Explanation:

Christianity was founded by hesus Christ in Jerusalem, capital of Israel.

Report Error

View Answer Report Error Discuss

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

7 2228
Q:

Who becomes world's No.1 ranked boxer in latest AIBA Rankings ?

A) Mary Kom B) Muhammad Ali
C) Sindhu D) All of the above
 
Answer & Explanation Answer: A) Mary Kom

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2227
Q:

The wealthiest citizens of ancient rome were

A) patricians B) laborers
C) farmers D) plebeians
 
Answer & Explanation Answer: A) patricians

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank PO

0 2227
Q:

The (O-H) bond in CH3OH is _____.

A) polar covalent B) ionic
C) non polar covalent D) cationic
 
Answer & Explanation Answer: A) polar covalent

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

5 2227
Q:

The main products of photosynthesis are

A) Oxygen B) Sugar
C) Both A & B D) Carbon dioxide
 
Answer & Explanation Answer: C) Both A & B

Explanation:

The two main products of photosynthesis are sugar and oxygen. Oxygen is emitted as waste product and sugar is used for energy preparation using sun light.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

1 2227
Q:

In which layer of the atmosphere does weather occur?

A) Troposphere B) Stratosphere
C) Ionosphere D) Mesosphere
 
Answer & Explanation Answer: A) Troposphere

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 2227