-
Stop Watch
I want code for stop watch in c c++ & java.
-
Find the errors in the following program:
c# include
int main()
{
printf("Learning C is not
a difficult task");
return();
} -
-
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
-
-
Language and scripting language
Explain the difference between language and scripting language?
-
Break Statement
What is the break statement used for?1. To quit the program.2. To quit the current iteration.3. To stop the current iteration and begin the next iteration.4. None of the above.
-
What will be the code for>?
Write a program that prompts the user to enter an integer from 1 to 15 and displays
a pyramid . For example if the input integer is 6 ,the output is shown below :
1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
5 4 3 2 1 2 3 4 5
6 5 4 3 2 1 2 3 4 5 6Enter 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.
A program in C using Void Pointer
c#include
#include
int main()
{
int a=10;
void *p;
p=&a;
clrscr();
printf("%u",*p);
getch();
return;
}
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 :)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???
Print colors with printf
Is it possible to print colors with printf statements ?
Output of the C program
What is the output of the following code?
c
#include
void main()
{
int s=0;
while(s++Return Multiple Values from Function
How to return multiple values in C language function?
Read Specified Number of Elements
What function will read a specified number of elements from a file?
Accept an amount in rupees (indian currency ) from the user...
....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!!Accept two numbers from the user...
...and multiply these two numbers without using the multiplication operator!
using any loop!Write a program to accept 20 numbers from the user
And count how many positive and how many negative and 0 numbers were entered!!
pls
It looks like you are using an AD Blocker!
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Ans