-
Srand() and rand() Functions
Explain srand() and rand() Functions
-
Link List
What is Link list? What is purpose of link list in programming.
-
Execute C Program
How will you execute a file from another C program through C programming without system command?
-
-
End of File
What is the significance of EOF?
-
-
Platform Independent IPC Methods
Which IPC methods are Platform independent?
-
-
Read and Sort 30 integers into One Dimension Array
Write a C programme that read 30 integer numbers into one dimension array then using a function to sort them in desinding order (this function should use another function to exchange any two elements int the array) after that print desorted elements?
-
-
}
">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.
-
-
-
Find the binary form
Write a program to find the binary form for the given charcter input.eg:- for 'A' ASCII value is 65 and its binary form is 1000001.
-
-
What's the best way to declare and define global variables
What's the best way to declare and define global variables and functions?
-
Difference between reference and pointer?
What is difference between reference and pointer or pass by reference and pass by pointer?
-
-
Memory Allocation
we say stack is allocated to the local variables ,formal arguments and return addresses of a function for manipulating function calls?but the question arises when does the stack allocation to above things take place?at compile time or run time.And by the way what about automatic memory allocation.what is it?
-
A Program that does nothing
Write a program in C that does nothing not even takes memory?
C Interview Questions
Ans