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:

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 4026
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:

Technology giant Microsoft's India-born CEO ___________ has written his first book "Hit Refresh".

A) Satya Nadella B) Indra Nooyi
C) Kiran Mazumdar D) Sundar Pichai
 
Answer & Explanation Answer: A) Satya Nadella

Explanation:
Report Error

View Answer Report Error Discuss

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

10 4024