What is the output of the following code? | Sololearn: Learn to code for FREE!

-2

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

6/21/2019 8:17:46 AM

Rosoldier

7 Answers

New Answer

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

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

it is 44

0

-2

i predict 44, what is yours