Questions

Q:

What is the difference between malloc() and calloc() functions?

Answer

As against malloc(), calloc() needs two arguments, the number of elements  to be allocated and the size of each element. For example,


 p = (int *) calloc (10, sizeof (int));


would allocate space for a 10- integer array. Additionally, calloc() would also set each of this element with a value 0.


Thus the above call to calloc() is equivalent to:


p = (int *) malloc (10 * sizeof (int));


memset (p, 0, 10 * sizeof( int ));

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 4137
Q:

Which Company is the biggest player in the microprocessor industry  ?

A) AMD B) IBM
C) Motorola D) Intel
 
Answer & Explanation Answer: D) Intel

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

19 4137
Q:

Who acted as the Prime minister of India immediately on the death
of Jawaharlal Nehru ?

A) Mrs Indira Gandhi B) Gulzari Lal Nanda
C) TT Krishnamachari D) Lal Bahadur Shastri
 
Answer & Explanation Answer: B) Gulzari Lal Nanda

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

9 4136
Q:

Typewriter was invented by

A) Shockley B) Sholes
C) Howe D) None of these
 
Answer & Explanation Answer: B) Sholes

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

1 4136
Q:

What has a foot but no legs?

Answer

A measuring device.


 


Measuring devices have feet on them to measure distance.

Report Error

View answer Workspace Report Error Discuss

6 4135
Q:

In which one among the following districts is the highest point of Eastern Ghats located?

A) Ganjam B) Visakhapatnam
C) Kurnool D) North Arcot
 
Answer & Explanation Answer: B) Visakhapatnam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

10 4135
Q:

How many laws of physics are there?

A) 5 B) 4
C) 3 D) 2
 
Answer & Explanation Answer: C) 3

Explanation:

Physics has 5 laws. But the 3 laws of Newton has been clubbed together under one Law. Therefore there are 3 Newtons laws of Physics. They are ::

 

1. Newtons Laws of Motion

    a. First Law of Motion

    b. Second Law of Motion

    C. Third Law of Motion

 

2. Newtons Law of Cooling

 

3. Newtons Law of Gravitation.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

10 4134
Q:

Which of the following gases is present under pressure in soft drinks?

A) Nitrous oxide B) Oxygen
C) Nitrogen D) Carbon dioxide
 
Answer & Explanation Answer: D) Carbon dioxide

Explanation:

Carbon dioxide is present under pressure in soft drinks.

Report Error

View Answer Report Error Discuss

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

2 4133