Questions

Q:

How would you free the memory allocated by the following program?

#include "alloc.h"

#define MAXROW 3

#define MAXCOL 4

main()

{

     int **p, i;

     p = (int **) malloc (MAXROW * sizeof (int *));

      for ( i = 0; i < MAXROW ; i++)

            p[i] = (int *) malloc (MAXCOL * sizeof (int ));

}

Answer

for ( i=0; i < MAXROW ; i++)


free (p[i]);


free (p);

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 4044
Q:

A linear-shaped lowland between highlands or mountain ranges created by the action of a geologic rift or fault is called?

Answer

rift valley

Report Error

View answer Workspace Report Error Discuss

Subject: World Geography

0 4044
Q:

The term of a non – permanent member of the U.N. Security Council is

A) 2 years B) 3 years
C) 1 year D) 6 months
 
Answer & Explanation Answer: A) 2 years

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

12 4042
Q:

Activities done repeatedly over time will become more efficient, increase in quality and will be found to be less demanding by the performing people. This is known as the

A) Learning Curve Theory. B) Continuous Improvement Theory.
C) Six-sigma Theory. D) Homeostasis Theory.
 
Answer & Explanation Answer: A) Learning Curve Theory.

Explanation:

Answers B and C belong to quality management, and answer D was formulated by Elizabeth Duffy and suggested that we all try to adjust our lives so that we have a dynamic balance (homeostasis) between challenge and relaxation. Kerstner, Chapter 18

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 4042
Q:

Which of the properties of the element is a whole number

A) atomic mass B) atomic number
C) atomic radius D) atomic volume
 
Answer & Explanation Answer: B) atomic number

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

5 4042
Q:

Who amongst the following is the author of the book ' Freedom from Fear '

A) Nelson Mandela B) Aung San Suukyi
C) Taslima Nasreen D) Benazir Bhutto
 
Answer & Explanation Answer: B) Aung San Suukyi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

10 4041
Q:

Florence Nightingale Medal is given internationally in which of these fields ?

A) Gaana B) Nursing
C) Architecture D) Teaching
 
Answer & Explanation Answer: B) Nursing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

3 4039
Q:

Niagara Falls are in

A) Australia B) South Africa
C) U.S.A D) U.K.
 
Answer & Explanation Answer: C) U.S.A

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

5 4038