Pls find error in the code nd fix it. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Pls find error in the code nd fix it.

It is code about Pointers in C-Language. https://code.sololearn.com/c4Y4bXcnQtSw/?ref=app

11th Nov 2018, 3:39 PM
Rajat Kumar
Rajat Kumar - avatar
1 Respuesta
+ 8
#include <stdio.h> //#include <conio.h> void main() { int i, *ptr; // adding * i = 1; // semicolon ptr = &i; printf("\n value of i=%d", i); printf("\n address of i=%p", &i); // d -> p printf("\n ptr=%p",ptr); // d -> p //getch(); }
11th Nov 2018, 3:49 PM
Babak
Babak - avatar