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:

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

Where is located the most active volcano in the world?

 

A) Around the Atlantic Ocean   B) Around the Pacific Ocean  
C) Around the Indian Ocean   D) Around the Arctic Ocean
 
Answer & Explanation Answer: B) Around the Pacific Ocean  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography
Exam Prep: Bank Exams , CAT

1 4140
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 4138
Q:

Who wanted economic freedom with political freedom?

A) Swami Sahajanand Saraswati B) Swami Vivekanand
C) Swami Ramanand D) Swami Dayanand saraswati
 
Answer & Explanation Answer: A) Swami Sahajanand Saraswati

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

7 4136
Q:

Tata Steel's Wholly owned indirect subsidiary, Tata Steel Global Minerals Holdings Pvt Limited, Singapore, on October 1, 2008, entered into a binding agreement  with new Millennium Capital Corporation, _______(NML) whereby Tata Steel will become a strategic investor in NML

A) Canada B) Taiwan
C) Mexico D) South Africa
 
Answer & Explanation Answer: A) Canada

Explanation:
Report Error

View Answer Report Error Discuss

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

3 4135
Q:

The 112-feet tall bust of ‘Adiyogi’ Lord Shiva at the Isha Yoga Foundation in ___________ has been declared the world’s largest bust by the Guinness Book of World Records.

A) Telangana B) Andhra Pradesh
C) Haryana D) Tamil Nadu
 
Answer & Explanation Answer: D) Tamil Nadu

Explanation:

The 112-feet tall bust of ‘Adiyogi’ Lord Shiva at the Isha Yoga Foundation has been declared the world’s largest bust by the Guinness Book of World Records. The Guinness had announced this on its website. The bust at the Isha Yoga Foundation on the outskirts of Coimbatore, Tamil Nadu was unveiled by Prime Minister Narendra Modi on 24 February.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

2 4135