i got a problem in displaying variables.
i wrote this code:
but i need this c++ code in ordinary C. whats the translation for "cout << *pointer"?Code:#include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> int main() { int x; int *pointer; pointer=&x; scanf("%ld", x); printf ("*pointer"); return 0; } but the command printf isnt displaying the variable. maybe this c++ code helps: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> int main() { int x; int *pointer; pointer=&x; cin>>x; cout<<*pointer; return 0; }