| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 44.what is the difference between strcpy() and memcpy()
function?
45.what is output of the following statetment?
46.Printf(“%x”, -1<<4); ?
47.will the program compile?
int i;
scanf(“%d”,i);
printf(“%d”,i);
48.write a string copy function routine?
49.swap two integer variables without using a third
temporary variable?
50.how do you redirect stdout value from a program to a file?
51.write a program that finds the factorial of a number
using recursion? | | 3 |
| 1,1,5,17,61,217,?,?. | | 3 |
| C passes By value or By reference? | Geometric-Software | 5 |
| how many keywords do C compile? | Microsoft | 2 |
| What is the diffrent between while and do while statement ? | | 5 |
| Why preprocessor should come before source code?
| | 2 |
| Binary tree traversing | Qualcomm | 1 |
| What should be keep precautions while using the recursion
method? | | 1 |
| what is the function of .h in #include<stdio.h> in c ? | IBM | 9 |
| main()
{
printf(5+"Vidyarthi Computers");
} | | 6 |
| write a programe returns the number of times the character
appears in the string | | 1 |
| what is the use of pointers | | 5 |
| Give me basis knowledge of c , c++... | | 4 |
| without a terminator how can we print a message in a printf
() function. | NIIT | 5 |
| CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position. | Adobe | 4 |
| C program to find frequency of each character in a text
file? | | 3 |
| How would you print out the data in a binary tree, level by
level, starting at the top? | Microsoft | 4 |
| 12. Look at the Code:
main()
{
int a[]={1,2,3},i;
for(i=0;i<3;i++)
{
printf("%d",*a);
a++;
}
}
Which Statement is/are True w.r.t the above code?
I.Executes Successfully & Prints the contents of the array
II.Gives the Error:Lvalue Required
III.The address of the array should not be changed
IV.None of the Above.
A)Only I B)Only II C)II & III D)IV
| Accenture | 4 |
| in C-programming language without using printf statement
can we get output r not ? if yes how and if no also how ?
| | 6 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| |
| For more C Interview Questions Click Here |