HeadsetsIn2014 :
Pinhedd :
HeadsetsIn2014 :
I have a book on ANSI C: The C Programming Language, 2nd Edition
I use Dev-C++ But it doesn't always work I type commands I get no errors but they Don't work
C and C++ are different languages. It is possible to write a program that can be compiled by both C and C++ with no logical consequences but many valid C programs are not valid C++ programs.
The program works with both
I'll do something like it might not be right so if I did something wrong is this its not the problem but you get the idea it won't say 10 it says nothing but I get no errors
#include <stdio.h>
main()
{
int x;
x = 10;
printf(x);
getchar();
}
Then what's the problem then?