Question
QUESTION 13 What will be the output of following code snippet? char str[] = Spring Break!; char *s = str; printf(%s, s++ +2); A. ing
QUESTION 13
-
What will be the output of following code snippet?
char str[] = "Spring Break!";
char *s = str;
printf("%s", s++ +2);
A. ing Break!
B. Spring Break!
C. ring Break!
D. pring Break!
2 points
QUESTION 14
-
What will be the output of following program?
#include
void func(int*);
int main()
{
int i = 20;
int *p = &i;
func(p);
printf("i = %d ", i);
return 0;
}
void func(int *j)
{
(*j)++;
}
A. Compile-time Error
B. i = 21
C. i = 65732567 //Some Memory Address Location
D. i = 20
2 points
QUESTION 15
-
What will be the output of following statements?
int i=3, *j, k;
j = &i;
printf("%d ", i**j*i+*j);
A. 30
B. 27
C. 9
D. 3
2 points
QUESTION 16
-
What will be the output of following statements?
char p[] = "%d ";
p[1] = 'c';
printf(p,65);
A. a
B. 65
C. c
D. A
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started