Questions

Q:

Indicate what would the SWAP macro be expanded to on preprocessing. Would the code compile?

#define SWAP (a, b, c ) (c t; t = a, a = b, b = t; )

main()

{

    int x = 10, y = 20;

    SWAP (x, y, int );

    printf ( " %d%d ", x, y);

}

Answer

( int t ; t = a, a = b, b = t ;);


This code won't compile since declaration of t cannot occur within parentheses.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2785
Q:

Which of the following is necessary for a natural monopoly?

 

A) economies of scale B) a high proportion of the total cost as the cost of capital goods
C)  very small market D) All options are correct.
 
Answer & Explanation Answer: D) All options are correct.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 2785
Q:

Smart-Up grants, is associated with which Indian bank?

 

A) ICICI Bank B) Yes Bank
C) Axis Bank D) HDFC Bank
 
Answer & Explanation Answer: D) HDFC Bank

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2785
Q:

Saint Ramananda associated with which of the following branches?

 

A) Ram Magri B) Premashrayi
C) Gyanashrayi D) Karmashrayi
 
Answer & Explanation Answer: A) Ram Magri

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: Bank Exams

2 2784
Q:

The only couple to win the Nobel Prize were the

A) Ruther Fords B) Curies
C) Davies D) Millikans
 
Answer & Explanation Answer: B) Curies

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

0 2783
Q:

The first Asian Games were held in

A) Manila B) Tokyo
C) Jakarta D) New Delhi
 
Answer & Explanation Answer: D) New Delhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

3 2783
Q:

The insects do not have blood pigments because 

A) there is no blood B) tissues have pigments
C) blood does not have a respiratory function D) pigments are elsewhere
 
Answer & Explanation Answer: C) blood does not have a respiratory function

Explanation:

The blood of some invertebrate animals like the earthworm is red due to haemoglobin pigment, but the pigment is dissolved in the plasma. In vertebrates the same pigment is found in the red corpuscles and not in the plasma.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 2783
Q:

As per the news reports, MTNL recently launched its 3G service and became the first telecome operator to launch the same in India. What is the full form of 'G' in 3G

A) Global B) Generation
C) Growth D) Gravity
 
Answer & Explanation Answer: B) Generation

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 2782