Q: what does this statement do ?
3 + 4;
i am not able to answer it, except that it is an error BUT this is
what i got from Terminal:
-------------- PROGRAME --------------
int main()
{
3 + 4;
return 0;
}
-------------- OUTPUT -----------------
[arch@voodo acc-cpp]$ g++ -ansi -pedantic -Wall -Wextra new.cpp
new.cpp: In function 'int main()':
new.cpp:3: warning: statement has no effect
[arch@voodo acc-cpp]$
3 + 4;
i am not able to answer it, except that it is an error BUT this is
what i got from Terminal:
-------------- PROGRAME --------------
int main()
{
3 + 4;
return 0;
}
-------------- OUTPUT -----------------
[arch@voodo acc-cpp]$ g++ -ansi -pedantic -Wall -Wextra new.cpp
new.cpp: In function 'int main()':
new.cpp:3: warning: statement has no effect
[arch@voodo acc-cpp]$
Comment