-
-
-
Constant Variable Value
How will you change the value of a constant variable in C?
C Pointer Size
If p is declared as char *p then what is size of(*P)?
Differences between Arrays and Linked lists
What are the differences between Arrays and Linked lists and why we go for linked lists if we have pointers to arrays?
Tricky C Program
Write a C program to find a peculiar two digit number which is three times the sum of its digits.
What is an lvalue?
An lvalue is an expression to which a value can be assigned. The lvalue expression is located on the left side of an assignment statement, whereas an rvalue is located on the right side of an assignment statement. Each assignment statement must have an lvalue and an rvalue. The lvalue expression must reference a storable variable in memory. It cannot be a constant.
Error Code
Will this code cause an error during runtime, error during compilation, or no error? 1.) char str[5]; strcpy (str, "hello"); 2.) char *str; strcpy (str, "hello");
}
">Main(){ int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p}
A) Compile errorB) 1.00000C) Runtime error.D) 0.00000Explanation: Error because i/(*p) is 25/25 i.e 1 which is int & printed as a float, so abnormal program termination, runs if (float) i/(*p) -----> Type Casting.
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...

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