

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
10 questions
Aportes de las Teorías de Desarrollo Función Docente
Presentation
•
Professional Development
6 questions
PRÉ- HISTÓRIA
Presentation
•
Professional Development
6 questions
bcaa
Presentation
•
Professional Development
8 questions
Sprint 7
Presentation
•
KG
5 questions
Using Assessment to Support Learning
Presentation
•
Professional Development
8 questions
Unida 4: Gráficos y Gráficos Dinámicos
Presentation
•
Professional Development
9 questions
Podcast
Presentation
•
Professional Development
6 questions
40 ans Sab
Presentation
•
Professional Development
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade