| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function. | Temenos | 4 |
| What is Heap? | | 3 |
| Can we write a program without main() function? | | 9 |
| What is function pointer and where we will use it | NetApp | 1 |
| write a program to find the sum of the array elements in c
language? | | 8 |
| What will be result of the following program?
void myalloc(char *x, int n)
{
x= (char *)malloc(n*sizeof(char));
memset(x,\0,n*sizeof(char));
}
main()
{
char *g="String";
myalloc(g,20);
strcpy(g,"Oldstring");
printf("The string is %s",g);
}
a) The string is : String
b) Run time error/Core dump
c) The string is : Oldstring
d) Syntax error during compilation
e) None of these
| IBM | 3 |
| what is the difference between structural,object
based,object orientd programming languages? | PanTerra | 1 |
| write a program for odd numbers? | | 6 |
| Can you think of a way when a program crashed before
reaching main? If yes how? | | 2 |
| which header file contains main() function in c? | TCS | 3 |
| program to find the second largest word in a paragraph
amongst all words that repeat more thn twice | iGate | 3 |
| can you explain in brief what is "r+" mode in a file... i
know that it si used to read and modify rhe existing
content.... but explalanation about the file pointer in "r+"
mode i wann to know??????????? | Cognizent | 1 |
| write a own function for strstr | LG-Soft | 1 |
| What is a far pointer?What is the utility? | | 2 |
| What should be keep precautions while using the recursion
method? | | 1 |
| What's wrong with "char *p; *p = malloc(10);"? | | 5 |
| How to implement variable argument functions ? | HP | 1 |
| how to find the binary of a number? | Infosys | 5 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| how to find out the inorder successor of a node in a tree?? | TCS | 2 |
| |
| For more C Interview Questions Click Here |