-
What is the output of the program
c#include
int main()
{
printf("%c",*"abcde");
return 0;
} -
Language
What is the difference b/w c & java?
-
-
Need help in writing a C program using array and loop statement
Write a C program using arrays and any loop statements that asks the user to enter the number of students. For each student, enter the number of courses. The user should enter the students ID number and the marks for each course. Compute and display the total and average of the students marks.
Sample Output:
Enter the number of students: 2
Enter Student ID No. 1: 082367
Enter... -
If a,b,c are int variables and a=2, b=4,c=3,d=5, what is the value of the expression
a/b/c*d-a+c*d/b-c. Justify your answer
-
Pointer Drawback
What is the drawback of using pointer?
-
Find the errors in the following program:
c# include
int main()
{
printf("Learning C is not
a difficult task");
return();
} -
-
-
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?
It looks like you are using an AD Blocker!
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Ans