Wednesday 7 November 2018

Declare in C == define in C++?






Is it correct that to declare in C is equal to define in C++?



int a;     /* to declare variabel a in C */
int b = 2; /* to declare and initialize in C */


int c; // to define in C++
int d = 4; // to define and initialize in C++

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...