-
Tiny, large, huge memory models
I need the above said memory types explanation.
Please tell me any one. -
What is the output of this C Code?
c#include
void main()
{
printf(5+"fascimile");
}
-
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???
-
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.
-
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 -
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!! -
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 6 -
Find the errors in the following program:
c# include
int main()
{
printf("Learning C is not
a difficult task");
return();
} -
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
-
Language
What is the difference b/w c & java?
-
How to write a program for fibonacci series using perl?
Can someone help me in writing program for fibonacci series using perl..
-
C program 1-D array
Write a function to count how many students get marks higher than the average and how many students get marks lower than average mark out of n number of students.
-
How to print the over flow of fibonacci series
How to print the over flow of fibonacci series using unsined int upto 100 numbers
-
What is the difference in C and Java ?
Why the c use only compiler ? while java used both interpreter as well as compiler ?
-
Print value of I in C
Print value of i ?
c#include
#include
void main()
{
int i=1*4/3-27%3^2+100*0.5(4>3?1:2);
clrscr();
printf(“%d”, i);
getch();
}
-
Which order the functions would be called?
In the following code, in which order the functions would be called?
a= f1(23,14)*f2(12/4)+f3(); -
What is statement and branch coverage for this program?
c#include
main()
{
call add();
int NO1,NO2NO3
}
void add()
{
scanf("%d",&NO1);
scanf("%d",&NO2);
NO3=sum(NO1,NO2);
printf("%d",NO3);
}
void sum(int x,int y)
{
return(x+y);
}
-
How to find angle between hands of clock between old time and new time?
input1: 02:45:56 (string)
input2: 03:06:17 (string)
output:
1) angle between the old position of hour hand and new position of hour hand
2) angle between the old position of minute hand and new position of minute hand
3) angle between the old position of second hand and new position of second hand -
Big endian or Little endian
How will you find whether your system is following Big endian or Little endian representations. Write C code. In Little endian, the lowest byte is stored in lowest address.
-
Variables Storage
Variables should be stored in local blocks. Yes or No?
C Interview Questions
Ans