C Pointer

C Pointer

University

5 Qs

quiz-placeholder

Similar activities

แบบทดสอบก่อนเรียน นิพจน์และตัวดำเนินการ

แบบทดสอบก่อนเรียน นิพจน์และตัวดำเนินการ

University

10 Qs

C Programming First Quiz - Sec H

C Programming First Quiz - Sec H

University

10 Qs

C programming test 2 pointers

C programming test 2 pointers

University

10 Qs

Java Quiz

Java Quiz

University

4 Qs

Dart Final

Dart Final

University

9 Qs

Object Oriented Programming Quizz

Object Oriented Programming Quizz

University

10 Qs

Programming practices - C programming

Programming practices - C programming

University

9 Qs

Java Arrays

Java Arrays

5th Grade - University

10 Qs

C Pointer

C Pointer

Assessment

Quiz

Other

University

Easy

Created by

Azrinna Muhamad

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a pointer to an integer in C?

int p;

int &p;

int *p;

int p*;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

The memory address of x

10

The memory address of p

Garbage value

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the result of the following code?

5

10

Memory address of x

Compilation error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

10

20

30

Compilation error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you pass a pointer to a function in C?

void function(int *ptr);

void function(int ptr);

void function(int &ptr);

void function(int ptr*);

Discover more resources for Other