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

Which of the following is India's new rating Index developed by Ministry of Finance?

A) CECA B) CRIS
C) TIEA D) RTGS
 
Answer & Explanation Answer: B) CRIS

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 4537
Q:

The World's largest railway platform is at

A) Talchar B) New York
C) Kharagpur D) None of these
 
Answer & Explanation Answer: C) Kharagpur

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 4537
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 4535
Q:

Hepatitis virus destroys the cells and may cause the disease

A) Jaundice B) Malaria
C) Typhoid D) Elephantiasis
 
Answer & Explanation Answer: A) Jaundice

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

7 4535
Q:

In which year was the Supreme Court of India established?

A) 1951 B) 1949
C) 1950 D) 1947
 
Answer & Explanation Answer: C) 1950

Explanation:

The Supreme Court of India was established in the year 1950.

Report Error

View Answer Report Error Discuss

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

22 4533
Q:

Which is not a sediment transporting agent?

A) Stratification B) Windstorms
C) Glacial Ice D) Stream water
 
Answer & Explanation Answer: A) Stratification

Explanation:

Stratification as actually the settling down of sediments with different properties to form layers/strata over years. Stratification especially occurs on the bed of water bodies such as oceans.

 

Stratified sedimentary rocks are used to study the ecological conditions over previous years/eras.  

 

The other choices like Windstorms, Glacial Ice and Stream water are mediums which sediments are transported.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

5 4533
Q:

World's smallest Computer is unveiled by

A) Infosys B) Intel
C) IBM D) Microsoft
 
Answer & Explanation Answer: C) IBM

Explanation:

IBM has unveiled the world's smallest computer - a device no bigger than a grain of salt. Presented at the company's Think 2018 conference in Las Vegas, Nevada, the unit measures just 1mm by 1mm but has the same processing power as the x86 chip that ran early Nineties IBM desktop computers.

Report Error

View Answer Report Error Discuss

2 4529