Does displaying a simple statement in C (or C++) occupy some memory? For example,
//in C
printf("\nHello World");
//in C++
cout<<"Hello World" ;
and, will it make a difference if I attach some value of a variable to be displayed in the same statement? For example,
printf("Value is %d" , var) ;