Pointer in C Basic question. Online Test

(1) What is (void*)0?


(2) Can you combine the following two statements into one?

char *p;

p = (char*) malloc(100);


(3) In which header file is the NULL macro defined?


(4) How many bytes are occupied by near, far and huge pointers (DOS)?


(5) The operator used to get value at address stored in a pointer variable is


(6) What would be the equivalent pointer expression for referring the array element a[i][j][k][l]


(7) If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?


(8) A pointer is













Description:

This test is the basic question of Pointer in C. It will beneficial in future reference. There is nothing any time limit. So don't worry , and attend the test very carefully. And there a multiple type question. So i hope most of people attend my test, This is my first test i shared on WiziQ. Specially thanks wiziQ members and Owner.

Discussion

pratik jain

good One buddy. Thanks .
!st question is really good to know

1256 days 16 hours ago

anil choudhary

plz give some typical pointers..questions

1264 days 6 hours 30 minutes ago

Sudhir Baldaniya Software Engineer
C, C++,HTML 5, Asp.net with C#, JavaScript, Sql Server2005/2008.
User
32 Followers
Tests: 5

Your Facebook Friends on WizIQ

More Tests By Author

Technical Database Related Test
20 Questions | 735 Attempts

Test on Asp.net
20 Questions | 3278 Attempts

Test on Sql Server
10 Questions | 1292 Attempts

Test on Verbal Reasoning ( Blood Relation )
10 Questions | 3830 Attempts