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

Banaue Rice Terraces in Ifugao is located in which country?

A) Burma B) Brunei
C) Philippines D) India
 
Answer & Explanation Answer: C) Philippines

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

5 3756
Q:

What has 4 eyes but can't see?

Answer

It is MISSISSIPPI.


 


 


 


 


 


 


 


 
Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: Bank Exams

3 3756
Q:

The most imposing of all the pyramids is the Great Pyramid at Gizeh near Cairo, was built about 2650 B.C by the ____ of the Old kingdom.

A) Pharaoh Cheops (Khufu) B) King Tutankhamen
C) Hammunrabi D) None of these
 
Answer & Explanation Answer: A) Pharaoh Cheops (Khufu)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

0 3756
Q:

What is amodem connected to?

A) processor B) mother board
C) printer D) phone line
 
Answer & Explanation Answer: D) phone line

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams
Job Role: Bank Clerk

14 3755
Q:

Antimony is

A) metal B) non metal
C) non metaloid D) metalloid
 
Answer & Explanation Answer: D) metalloid

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

3 3753
Q:

Water which is suitable for drinking is called _______________ water.

 

A) hygienic B) sparkling
C) potable D) sanitary
 
Answer & Explanation Answer: C) potable

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 3749
Q:

What is the RST for the TRAP?

Answer

RST 4.5 is called as TRAP.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

1 3749