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

Which countries organized joint military exercise named ‘Mitra Shakti’ in October 2017?

 

A) India-Sri Lanka B) India-Nepal
C) India-Japan D) India-Bhutan
 
Answer & Explanation Answer: A) India-Sri Lanka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

1 4159
Q:

Who is the auther of the book Atal Ji Ne Kaha?

A) Brijendra Rehi B) Sushwanth
C) Raj singh D) None of the above
 
Answer & Explanation Answer: A) Brijendra Rehi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

8 4158
Q:

The invasion of which of these countries in 1939 widely regarded to have started World War II ?

A) Italy B) Germany
C) Poland D) France
 
Answer & Explanation Answer: C) Poland

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

6 4157
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 4156
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 4156
Q:

Which Indian company has partnered with UNICEF to distribute vaccines around the world?

 

A) Bharat Biotech B) Dr Reddys
C) Serum Institute of India D) Biocon
 
Answer & Explanation Answer: C) Serum Institute of India

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 4153
Q:

What are Digrams and Trigrams?

Answer

The most common two letter combinations are called as digrams. e.g. th, in, er, re and an. The most common three letter combinations are called as trigrams. e.g. the, ing,and, and ion.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

2 4153