| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how to make program without <> in library.
| ADITI | 1 |
| #include<stdio.h>
int fun();
int i;
int main()
{
while(i)
{
fun();
main();
}
printf("hello \n");
return 0;
}
int fun()
{
printf("hi");
}
answer is hello.how??wat is tat while(i) mean? | Intel | 4 |
| Write a C++ program without using any loop (if, for, while
etc) to print numbers from 1 to 100 and 100 to 1;
| | 7 |
| How to implement variable argument functions ? | HP | 1 |
| what is the output of the following program and explain the
answer
#include<stdio.h>
exp()
{
main(5)
}
main(int a)
{
printf("%d",a);
return;
} | Satyam | 3 |
| Write a program to compare two strings without using the
strcmp() function | Accenture | 14 |
| write a program for even numbers? | | 8 |
| What are Storage Classes in C ? | HP | 15 |
| 2.main
{
int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);
| HCL | 6 |
| How to find the given no is odd or even without checking of
any condition and loops. (Hint: Using array) | | 4 |
| what is the use of a array in c | | 4 |
| macros and function are related in what aspect?
a)recursion b)varying no of arguments
c)hypochecking d)type declaration
| HCL | 8 |
| void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case | TCS | 7 |
| How can I return multiple values from a function? | | 4 |
| write a recursive program in'c'to find whether a given five
digit number is a palindrome or not | | 1 |
| what is the difference between these initializations?
Char a[]=”string”;
Char *p=”literal”;
Does *p++ increment p, or what it points to?
| | 2 |
| Program to trim a given character from a string. | NetApp | 4 |
| In scanf h is used for | BFL | 2 |
| what is the difference between entry control and exit
control statement? | | 2 |
| what does " calloc" do? | Cadence | 6 |
| |
| For more C Interview Questions Click Here |