C Language - Pointers

You Are Here :: Home > C Language > Pointers - General Questions

 
1.

The size of a pointer data type is

A. 2 bytes B. 4 bytes
C. dependent on the machine and your implementation of C D. 8 bytes




2.

Given the C declaration
float t1, *t2=&t1;
which variable contains "garbage"?

A. t1 B. t2
C. *t2 D. all of the above




3.

The indirection operator in C is the

A. & B. @
C. * D. ^




4.

The indirection operator in C goes ______the variable that it operates on

A. in front of B. in back of
C. all the above D. none of the above




5.

Which function does the asterisk in C not have?

A. indirection B. declares a pointer
C. provides the address of its operand D. multiplication




6.

The ____ conversion code prints out addresses in pointer types

A. %a B. %t
C. %r D. %p




1

2

3

4

5

6

7

8

9

...

next »

 
 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on