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

Which of the following is the highest active volcano in the world

A) Etna B) Fujiyoma
C) Mount tai D) Catopaxi
 
Answer & Explanation Answer: D) Catopaxi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 4142
Q:

The Periyar Game Sanctuary at Thekkady is in 

A) Karnataka B) Kerala
C) Tamil Nadu D) Goa
 
Answer & Explanation Answer: B) Kerala

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 4142
Q:

As per the policies of the Government of India any proposal for FDI in single brand retail should not be above line of ___

A) 33% B) 43%
C) 48% D) 51%
 
Answer & Explanation Answer: D) 51%

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

13 4140
Q:

Who has become the Asia's richest man according to Forbes report ?

A) Azim Premji B) Tadashi Yanai
C) Shiv Nadar D) Hui Ka Yan
 
Answer & Explanation Answer: D) Hui Ka Yan

Explanation:
Report Error

View Answer Report Error Discuss

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

12 4139
Q:

Nickname of Jayaprakash Narayan?

A) Lok Pal B) Lok Nayak
C) Lokansh D) Lok Satta
 
Answer & Explanation Answer: B) Lok Nayak

Explanation:

nickname_of_jayaprakash_narayan1561466732.jpg image

 

Jayaprakash Narayan was an Indian independence activist, theorist, socialist and political leader who is popularly known as Lok Nayak.

 

Report Error

View Answer Report Error Discuss

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

2 4139
Q:

Which number will complete the series?

14, 27, 52, 101, 198, ?

A) 381 B) 395
C) 391 D) 394
 
Answer & Explanation Answer: C) 391

Explanation:
Report Error

View Answer Report Error Discuss

0 4138
Q:

Who was the first captain of Indian Test Team

A) Vijay Hazare B) C K Nayudu
C) Lala Amarnath D) Vijay Merchant
 
Answer & Explanation Answer: B) C K Nayudu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

4 4136