-
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 is the output of the following sample C Code
Int *ptr = (int *)malloc(100*(sizeof(int)));ptr++;free(ptr);
-
-
What is the output of the following program:
cint main()
{
char a = 120, b = 140;
int i;
i = a + b;
printf("%d", i);
return 0;
}
a) 260
b) 0
c) -1
d) 1 -
-
-
-
-
Reverse String Stored in Pointer Array
Write a C program to reverse the strings stored in the following array of pointers to strings char *s[]={"To err is human..", "But to really mess things up", "One needs to learn C!!" };
-
Function syntax
string abc = showData()["Hello"];
can somebody explain what is use of ["Hello"] after function call? -
C program to count numbers of positive and negative numbers
Write a C program using arrays to count the numbers of positive and negative numbers which accepts the inputs as "size of the array" & "elements of the array" and outputs as "number of negative numbers in an array are" & "numbers of positive numbers in an array are" ?
Print number of distinct characters in a string.
How do I implement a C program that reads a string and prints a table with the number of occurrences of each character in the string.
Ex: Rubber. r = 2, u = 1, b = 2, e = 1.What change is required in the following program so that its output becomes 3,6,11,20,37,......1034?
c#include
#include
int main()
{
int a=1,r=2,i;
for (i=0;iDifference between printf and cprintf
What is the difference between cprintf and printf? Please explain in detail.
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.
C program to compare two text files
Hii All,
i am a begginer at c programming in the first semetser of study, and i am trying to doing my project what is:
Diff — The program should compare two text files and list the differences, i.e. lines and columns of the beginning and the end of a given difference.
i dont know how to start or what to do with this, please anyhelp :)
thank you

It looks like you are using an AD Blocker!
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Ans