wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pointersand Functions

Total questions: 4

Worksheet time: 4mins

Name
Class
Date
1.

Comment on this const int *ptr;

(a)  

2.

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

(a)  

3.

What is the output of this C code?

void main()

{

int x = 0;

int *ptr = &5;

printf("%p\n", ptr);

}

(a)  

4.

#include<stdio.h> int main(){ char arr[15] = "pointer array"; int *ptr; ptr = arr; printf("%c",ptr[1]); return 0; }

(a)