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
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...
I know that this program is wrong as error is shown on compiling it. Anyone please provide a simple program using Void pointer in C. Thanks in advance :)
- int main()
- int a=10;
- void *p;
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...
Ex:int a=10;int b=10;int sum=a+b;without using "+" operator calculate sum
....And find the minimum number of notes to form that amount. the denominations are 500,100,50,20,10,5,2,1 rupee. using any loop!!
And count how many positive and how many negative and 0 numbers were entered!! pls
Some questions answers are compiler dependent..So correct it, as in my test I observed the sizeof int is 2 bytes which was in 16bit compiler like turbo. Now world has moved to 32 bits, even 64 bits will coming near soon, so change ur test ans....
Example:reverse (hello) prints out (olleh)