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

When the simmon commission visited India the Viceroy was

A) Lloyd George B) Lord lrwin
C) Lord Reading D) Lord Ripon
 
Answer & Explanation Answer: B) Lord lrwin

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

4 4026
Q:

Which place is now known as 'White Water' in India?

A) Leh B) Ladakh
C) Kargil D) Siachen
 
Answer & Explanation Answer: D) Siachen

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

0 4026
Q:

Borders can be applied to

A) paragraph B) text
C) cells D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

When you want to add borders, it can be added to text, cells and paragraphs.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , GRE
Job Role: Analyst , Bank Clerk , Bank PO

2 4026
Q:

 Stored procedures have which of the following advantages?

A) It takes a longer time to write them as compared to writing Visual Basic. B) Data integrity improves as multiple applications access the same stored procedure.
C) Network traffic increases D) Result in thicker client and thinner database server.
 
Answer & Explanation Answer: B) Data integrity improves as multiple applications access the same stored procedure.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 4024
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 4024
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 4024
Q:

India's longest cable-bridge inaugurated by PM Modi in which state ?

A) Assam B) Telangana
C) Gujarat D) Karnataka
 
Answer & Explanation Answer: C) Gujarat

Explanation:

PM Modi Inaugurated India's Longest Cable Bridge in Gujarat, a four-lane bridge over the river Narmada in Bharuch. The bridge is 1344 metres long and 22.8 metres wide. It is built by Larsen and Turbo as a part of the Rs. 379 crore project of the National Highway Authority of India.

Report Error

View Answer Report Error Discuss

Filed Under: Longest, Shortest, Deepest
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Bank Clerk , Bank PO

7 4024