- 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);

21st Jun 2019, 8:17 AM
Rosoldier
Rosoldier - avatar
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
23rd Mar 2020, 10:13 AM
Shivendra Sharma
Shivendra Sharma - avatar
+ 2
it is 44
19th Mar 2021, 4:59 PM
Sarra Kacem
Sarra Kacem - avatar
0
Just run the code and see what comes out.
21st Jun 2019, 8:25 AM
Dragonxiv
Dragonxiv - avatar
0
It will be. 22
18th Nov 2020, 2:13 AM
Nishanth
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‘
18th Nov 2020, 2:13 AM
Nishanth
0
44
29th Jul 2021, 11:25 AM
KOTHAMASU NAGA VENKATA SIVA SAI SARADA
0
44
18th Jan 2022, 4:35 PM
Rugema Didier
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
21st Aug 2022, 1:13 PM
HARIHARAN M
HARIHARAN M - avatar
- 2
i predict 44, what is yours
21st Jun 2019, 8:20 AM
Rosoldier
Rosoldier - avatar