NEW
Font size
WorksheetsPointers
Total questions: 20
Worksheet time: 4mins
A pointer declaration statement
datatype pointername;
ptrname datatype;
datatype *ptrname;
datatype &ptrname;
Double pointer is also known as
Pointer to a Pointer
Pointer to a variable
pointer to a memory
pointer to a value
What is the data type of generic pointer?
float
void
int
double
In the statement char names[10][5] how many address are saved;
10
5
50
15
In the statement int a[5][5] how many one dimensional arrays exists?
1
10
25
5
struct student
{
char *name;
}s,*sptr;
the statement which initializes names to "cse"
s.*name="cse";
sptr->name="cse";
*s.name="cse"
None
From single dimensional array, Statement to get the address of the element at the ith index
a+i
&(a+i)
both
_________ is used to access the elements from two dimensional array
*(*(a+i)+j)
*(&(a+i)+j)
&(*(a+i)+j)
none
Space occupied by the pointer depends
Compiler
Machine
Both
None
Full Form of GCC
GNU Compiler Collection
General Compiler Collection
Generative compiler Collection
General C Compiler
GCC is ____ bit compiler
64
16
32
8
The statement to access name where name is a character pointer in a structure and sptr is a pointer to structure,
(*sptr).name
sptr->name
both
none
A structure that contain a pointer to itself is known as
Referential Structure
Self Replica Structure
Self Created Structure
Self Referential Strcuture
Give an Application of self referential structure
Linked List
arrays
variables
none
The element that stores name and address of the next node in the linked list is called
NODE
LIST
STACT
QUEUE
In Pointer "&" operator is known as
info
Next
referencing operator
de Referencing Opeator
How many pointers can point to the same address?
Multiple
One
Zero
Two
Pointer Operators ___________ are assosiated
right to left
left to left
left to left
right to right
To point to a Memory location of a variable, Pointer type and variable type should be same
False
True
if a is an array then the statement a++ is a __________ statement
Valid Statement
Invalid Statement
