-
"Illegal structure operation" error meaning
This program produces the error "Illegal structure operation". {geshibot language="c"}#include #include const int i=10; void main() { const int i=20; clrscr(); cout
-
cprintf vs printf
cprintf is defined to send formatted output to the text window on the screen. And printf directs its output to the stdout. What is the difference between stdout and a text window then? Does the screen serve differently while using cprintf and printf? Please explain
-
Difference between printf and cprintf
What is the difference between cprintf and printf? Please explain in detail.
-
pre and post increment operators
why does ++i * ++i give 49 when i=5?
-
enter key carriage return or linefeed?
When we press enter to end the program and press Alt+F5 to see the output again, we see that the getche() function places the cursor at the beginning of the line. So, does the enter key specify carriage return in this case. But while entering output, it works as a newline character... Please explain the difference in both the contexts.
-
getch function declaration
Can you please explain the declaration of getch() function that is "int getch(void)"? I have the doubt that if its return type is int, why is the character typed from the keyboard is displayed as it is? It should be displayed in its ASCII value. Also, what does void as parameter in this function stand for???