

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
7 questions
Visume
Presentation
•
Professional Development
7 questions
Português Língua de acolhimento
Presentation
•
Professional Development
10 questions
Promoción horizontal ZOOM 14
Presentation
•
Professional Development
10 questions
ÔN TẬP CÂU LỆNH IF_THEN
Presentation
•
Professional Development
6 questions
Computer Science
Presentation
•
Professional Development
7 questions
Food Mall - Induction Module 1
Presentation
•
KG - University
9 questions
test of c- 1
Presentation
•
Professional Development
9 questions
Aplicaciones de realidad virtual para la exploración de entornos
Presentation
•
KG
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
10 questions
Food Quiz
Quiz
•
Professional Development
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
23 questions
super heros
Quiz
•
KG - Professional Dev...
11 questions
SOCCER PLAYERS AND TEAMS
Quiz
•
KG - Professional Dev...