_____is a variable that stores memory address of another variable which is of similar data type.

programming in c pointers

Quiz
•
Science
•
Professional Development
•
Medium
Prajakta Bhadale
Used 3+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
node
array
pointer
string
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
datatype *pointer_variable_name;
array syntax
string syntax
pointer syntax
c syntax
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
pointer arithmetic operations...?
1.Increment
2.Decrement
3.Addition
4.Subtraction
1.multiplication
2.division
3.modular
1.Iogical AND
2.logical OR
any other
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
void main()
{
int a[5],sum=0,i,*ptr;
clrscr();
printf("\n Enter array elements:");
for(i=0;i<5;i++){
scanf("%d",&a[i]);
ptr=&a[0];
}
for(i=0;i<5;i++) {
sum=sum+(*ptr); ptr=ptr+1;
} printf("\n Sum= %d",sum);
getch();
}
ABOVE CODE IS OF.....?
C program to sum of all elements stored in given array
C program to sum of all elements
C program to sum of all elements stored in given array using pointer
C program to sum
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
datatype pointer_variable_name;
Eg: int ptr;
Array
Variable
string
pointer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
void main() {
int x,y,a, b,*P1, P2;
x = 10; y = 20;
P1 = &x;
P2 = &y;
a = P1 * P2 +20;
b = P1 * *P2 – 20;
print f(“x=%d, y = %d”, x,y);
print f(“a=%d, b = %d”, a,b);
}
output for the above code is.....?
Output: x=15, y=10a=20, b=80
Output: x=20, y=10a=22, b=18
Output: x=10, y=20a=220, b=180
error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain meaning of following statements with reference to pointers
int a, b ; b = 20 ; a= b ; a = &b ;
no idea
int a,b; It is declaration of integer pointer a and integer variable b=20; value 20 is assigned to variable b. a=b; Value of b is assigned to pointer a. A=&b; Address of b is assigned to variable A.
int a,b; It is declaration of pointer a and integer variable b b=20; value 20 is assigned to variable b. a=b; Value of b is assigned to pointer a. A=&b; Address of a is assigned to variable A.
int a,b; It is declaration of integer pointer a and integer variable b b=20; value 20 is assigned to variable b. a=b; Value of b is assigned to pointer a. A=&b; Address of a is assigned to variable b.
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Scientific method

Quiz
•
KG - Professional Dev...
10 questions
Python5

Quiz
•
Professional Development
6 questions
Categories of Invasiveness in Animal Experiments

Quiz
•
Professional Development
10 questions
Avaliação Pensamento Computacional - Prático

Quiz
•
1st Grade - Professio...
15 questions
Week 11 Networks and Routing

Quiz
•
10th Grade - Professi...
15 questions
Python Skills

Quiz
•
1st Grade - Professio...
10 questions
Transistores

Quiz
•
Professional Development
10 questions
Design of Experiments

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade