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 4501
Q:

The World's largest railway platform is at

A) Talchar B) New York
C) Kharagpur D) None of these
 
Answer & Explanation Answer: C) Kharagpur

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 4501
Q:

Which is the highest Plateu?

A) Deccan B) Pamir
C) Colorado D) None
 
Answer & Explanation Answer: B) Pamir

Explanation:

Pamir is the highest of all the platues.It is located in Tibet

Report Error

View Answer Report Error Discuss

11 4500
Q:

In HTML, ___________ tag is used to construct drop-down list boxes and scrolling list boxes.

A) <SELECT> B) <OPTION>
C) <TEXTAREA> D) <INPUT>
 
Answer & Explanation Answer: A) <SELECT>

Explanation:
Report Error

View Answer Report Error Discuss

58 4500
Q:

The electrical domestic tube light gives white fluorescent light because of

A) colision between molecules of filled gas under electric current B) heavy current
C) vacuum inside the tube D) falling of ultra violet rays on the white inner coating of the tube
 
Answer & Explanation Answer: D) falling of ultra violet rays on the white inner coating of the tube

Explanation:

The ultraviolet rays have high frequency and shorter wavelength are converted to visible white light with lower frequency and greater wave length

Report Error

View Answer Report Error Discuss

Filed Under: Physics

2 4498
Q:

The vitamin required for coagulation of blood

A) B6 B) c
C) k D) b
 
Answer & Explanation Answer: C) k

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

8 4495
Q:

Which of the following is India's new rating Index developed by Ministry of Finance?

A) CECA B) CRIS
C) TIEA D) RTGS
 
Answer & Explanation Answer: B) CRIS

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 4492
Q:

What is the capital of Cuba ?

A) Bayamo B) Amancio
C) Havana D) Sandino
 
Answer & Explanation Answer: C) Havana

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Country Capitals

17 4490