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

Which of the following bank has recently launches a special edition ' Cricket Credit Card' in association with IPL franchise Delhi Daredevils?

A) Yes Bank B) Federal Bank
C) Ratnakar Bank Limited D) Kotak Mahindra Bank
 
Answer & Explanation Answer: C) Ratnakar Bank Limited

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

3 4131
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 4131
Q:

The movement of water molecules through the plasma membrane is called ______.

 

A) Osmosis B) Sedimentation
C) Precipitation D) Transpiration
 
Answer & Explanation Answer: A) Osmosis

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 4131
Q:

National Rural Development Institute is situated at

 

A) Assam B) Patna
C) Shimla D) Hyderabad
 
Answer & Explanation Answer: D) Hyderabad

Explanation:

National Institute of Rural Development is situated in Hyderabad. It is an organization involved in rural research and training in rural development.

 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

1 4130
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 4130
Q:

Select the related word/letters/numbers from the given alternatives:

BDCE : GIHJ :: QSRT : ?

A) VWXY B) UWMX
C) VXWY D) UWNX
 
Answer & Explanation Answer: C) VXWY

Explanation:
Report Error

View Answer Report Error Discuss

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