
pointers in C
Flashcard
•
Computers
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following pointer is Wild: int *p;, int *q=&a;, int *v=NULL;, void *g;
Back
int *p;
2.
FLASHCARD QUESTION
Front
What is the main drawback of pointers?
Back
Complexity to manage pointers
3.
FLASHCARD QUESTION
Front
What is the output of the following Code:
#include <stdio.h>
int main()
{
int *p;
int a=10;
p=&a;
*p=34;
printf("%d,%d",a,*p);
return 0;
}
Back
34,34
4.
FLASHCARD QUESTION
Front
What is the output of the following code:
#include <stdio.h>
int main()
{
void *z;
float s=1.2;
z=&s;
printf("%f",*z);
return 0;
}
Back
Compile time error
5.
FLASHCARD QUESTION
Front
What is the output of the following code:
#include <stdio.h>
int main()
{
int *p;
int a=20;
p=&a;
int **q;
**q=100;
q=&p;
*p=50;
printf("%d,%d,%d",**q,a,*p);
return 0;
}
Back
50,50,50
6.
FLASHCARD QUESTION
Front
What is the output of the following code snippet:
int a=45,b=67;
int *s,*q;
s=&a;q=&b;
printf("%d",s+q);
Back
Compile time error
7.
FLASHCARD QUESTION
Front
What is the output of the following code:
int a[]={1,2,33,4,4,6}
int *p;
p=a;
*(p+2)=25;
printf("%d,%d",*(p+2),2[a]);
Back
25,25
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Pendant mon temps libre
Flashcard
•
University
12 questions
Biologi Tingkatan 5 Bab 3
Flashcard
•
12th Grade
15 questions
Power, Work, and Energy Review
Flashcard
•
12th Grade
15 questions
Block 1 - 3
Flashcard
•
Professional Development
15 questions
Cryptocurrency Concept Check
Flashcard
•
12th Grade
15 questions
Probability Practice Math 4
Flashcard
•
12th Grade
15 questions
Chapter 5 Test Review A
Flashcard
•
12th Grade
10 questions
Enzimas
Flashcard
•
University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University