

Pointers in C
Presentation
•
Computers
•
Professional Development
•
Medium

poturaju puppala
Used 29+ times
FREE Resource
1 Slide • 8 Questions
1
Pointers in C

2
Multiple Choice
Code to change the 3rd array value to 50 using pointers
int main(){
int a[] = {10,20,30};
int *p = a;
----------------------;
}
p+3 = 50
*(p+3) = 50
*p+2 = 50
*(p+2) = 50
3
Multiple Choice
Point out the compile time error in the program given below.
#include<stdio.h>
int main()
{
int *x;
*x=100;
return 0;
}
Error: invalid assignment for x
Error: suspicious pointer conversion
No error
None of the above
4
Multiple Choice
In a C program,
int a = 20;
*ptr = &a;
**dptr = &ptr;
printf ("%d", **dptr);
prints
address of a
address of ptr
value of a
address of dptr
5
Multiple Choice
In a C Program if
int a = 5;
Int *ptr = &a;
then the printf statement with
&a, a, *ptr , ptr
adrress, Value, Value, Adress
address, value, value, value
all address
All values
6
Multiple Choice
In a C program,
int a = 20;
*ptr = &a;
**dptr = &ptr;
printf ("%d", **dptr);
prints
address of a
address of ptr
value of a
address of dptr
7
Multiple Choice
which of the following is the dereference operator
&
*
#
@
8
Multiple Choice
int a=10;
int *b=&a,**c=&b;
**c=*b-**c;
what is the value of a?
10
5
0
4
9
Multiple Select
which of the following defines NULL pointer
data_type * var=NULL;
data_type *var=0;
data_type *var='\0';
all the above
Pointers in C

Show answer
Auto Play
Slide 1 / 9
SLIDE
Similar Resources on Wayground
8 questions
Digitális platformok online workshop
Presentation
•
KG
8 questions
Cuidados al usar la computadora
Presentation
•
KG
8 questions
Risk W16 2024
Presentation
•
Professional Development
9 questions
LECCIÓN DE SCRATCH
Presentation
•
Professional Development
7 questions
Computers
Presentation
•
University - Professi...
10 questions
Aula12_6ano_PL
Presentation
•
Professional Development
6 questions
Lexi's Life
Presentation
•
Professional Development
7 questions
Inservice day - engaging learners
Presentation
•
Professional Development
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade