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

Although Blind, Deaf and Dumb, She graduated from college and achieved high distinction as a writer and scholar. Who was she ?

A) Anna Pova B) Samantha Fox
C) Sheila Gujral D) Helen Keller
 
Answer & Explanation Answer: D) Helen Keller

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: CAT , GRE
Job Role: Bank Clerk , Bank PO

3 4135
Q:

Which of the following is the headquarters of UNEP (United Nations Environment Programme)?

A) The Hague B) New York
C) Nairobi D) Vienna
 
Answer & Explanation Answer: C) Nairobi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 4135
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 4134
Q:

About who was it said " Age cannot wither her nor custom stale her infinite variety " ?

A) Cleopatra B) Benazir Butto
C) Mother Teresa D) Madame Tussaud
 
Answer & Explanation Answer: A) Cleopatra

Explanation:
Report Error

View Answer Report Error Discuss

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

2 4134
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 4134
Q:

Which Part of Indian Constitution deals with Centre-State financial relations?

 

A) Part X B) Part VIII
C) Part XII D) Part XX
 
Answer & Explanation Answer: C) Part XII

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 4133
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 4133