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

World Youth Skills Day is observed on _____ ?

A) 16 July B) 14 July
C) 13 July D) 15 July
 
Answer & Explanation Answer: D) 15 July

Explanation:

The United Nations General Assembly in November 2014 declared 15th July as World Youth Skills Day.

This day is celebrated all over the world to raise the awareness about the issue of unemployment among youth. 

Theme for the year 2017 is Skills for All.

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

10 4507
Q:

What was the topic of the book 'The Other America'?

A) Poverty was widespread in America. B) Education was lacking in America.
C) Racism was widespread in America. D) Americans needed more highways.
 
Answer & Explanation Answer: A) Poverty was widespread in America.

Explanation:

The book "The Other America" was written by Michael Harrington. The topic of the book 'The Other America' was Poverty was widespread in America.

Report Error

View Answer Report Error Discuss

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

3 4506
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 4505
Q:

Name the processor lines of two major manufacturer?

Answer

High-end: Intel - Pentium (II, III, 4) AMD - Athlon. Low-end: Intel - Celeron, AMD - Duron. 64-bit: Intel - Itanium 2, AMD - Opteron.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

1 4503
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 4502
Q:

The vitamin required for coagulation of blood

A) B6 B) c
C) k D) b
 
Answer & Explanation Answer: C) k

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

8 4500
Q:

How many kilometers and represented by 1oof latitude?

A) 321 km B) 211 km
C) 111 km D) 91 km
 
Answer & Explanation Answer: C) 111 km

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

2 4499