-
What is page thrashing?
Some operating systems (such as UNIX or Windows in enhanced mode) use virtual memory. Virtual memory is a technique for making a machine behave as if it had more memory than it really has, by using disk space to simulate RAM (random-access memory). In the 80386 and higher Intel CPU chips, and in most other modern microprocessors (such as the Motorola 68030, Sparc, and Power PC), exists a piece of...
-
-
-
-
-
-
-
-
-
What will be output if you will execute following c code?
c #i ain()
{
float p=1,q=2,r=-2,a;
a=avg(p,(q=4,r=-12,q),r);
printf("%f",a); return 0;
}
float avg(float x,float y,float z)
{
return (x+y+z)/3;
}
a) 1.000000
b) 0.333333
c) -2.333333
d) 1 -
-
Whats the output of.....>>?
#include
#include
void main()
{
int a=1;
if(a=1,3,5,6)
printf("good&a=%d",a);
else
printf("bad&a=%d",a);
}
} -
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... -
Program
Write a program that asks a user to type in their name, sex, age, roll number and store them!
The program should then print the information the user entered
(Hints: use character arrays for name, sex) -
-
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?
C Interview Questions
Ans