-
How can I convert a number to a string?
The standard C library provides several functions for converting numbers of all formats (integers, longs, floats, and so on) to strings and vice versa The following functions can be used to convert integers to strings: Function Name Purpose itoa() Converts an integer value to a string. ltoa() Converts a long integer value to a string. ultoa() Converts an unsigned long integer value to a string....
-
Find Number of Occurrences
How will you find the number of occurrences of a particular string in the given input string?
-
-
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?
-
Memory Stack or Heap
Which type of memory(stack or heap)is used by static and external variables?
-
-
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?
-
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.
-
-
-
}
">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.
-
-
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?
-
-
Platform Independent IPC Methods
Which IPC methods are Platform independent?
-
-
End of File
What is the significance of EOF?
-
C Interview Questions
Ans