- 3
What is the output of the following code?
int a[5] = {22, 33, 44, 55, 66}; int *ptr = a; int res = *(ptr + 2); printf("%d", res);
9 Respostas
0
What is the output of the following code?
int a[5] = {22, 33, 44, 55, 66};
int *ptr = a;
int res = *(ptr + 2);
printf("%d", res);
Answer-44
+ 2
it is 44
0
Just run the code and see what comes out.
0
It will be. 22
0
1. What is the outputfor the following program
#include <stdio.h>
int main() .
{ int var = 5; grintff'va r: %d\n", var); ‘ ‘ . printff'va r: %d", &vag; I Lew: 0:
}
2. Write syntaxfor structu re and how to declare structu re variable to outside of the structure. 3. Write a factorial program using recursive function
P
Write a program to find the simple interest usingfunction with arguments Write a structure program to find out the student mark list with Total and Average
Write a program to displaythe employee details usingstructu re
Write a program to displaythe pointerto pointer
.0"
How many types of functions in C language Whatis nested structure? Explain
10. What is the Differentiate between Actual Pa rametersand Formal Parameters?
PWNP‘
0
44
0
44
0
just add 2 from the index 0 we get 44 as the value for index 2 from 0+2 the value will be 44 after 22 and 33
- 2
i predict 44, what is yours