| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How the processor registers can be used in C ? | HP | 4 |
| why we shiuld use main keyword in C | | 5 |
| What is a far pointer?What is the utility? | | 2 |
| void main()
{int a[5],i,b=16;
for(i=0;i<5;i++)
a[i]=2*i;
f(a,5,b);
for(i=0;i<5;i++)
printf("\n %d",a[i]);
printf("\n %d",b);
}
f(int *x,int n,int y)
{
int i;
for(i=0;i<n;i++)
*(x+i)+=2;
y=y+2;
}wat r the errors in the prg.and improvise the prg to get o/p.? | | 2 |
| to find the program of matrix multiplication using arrays | | 2 |
| write the program for prime numbers? | TCS | 10 |
| how does printf function work | | 1 |
| How do I initialize a pointer to a function? | | 2 |
| #define f(x)
main()
{
printf("\n%d",f(2+2));
} | | 3 |
| what is the difference between c and java? | | 1 |
| Which of the following sorts is quickest when sorting the
following set: 1 2 3 5 4
1) Quick Sort
2) Bubble Sort
3) Merge Sort
| | 5 |
| what will be the output:
main(){char ch;int a=10;printf("%d",ch);} | Wipro | 29 |
| write a program to generate 1st n fibonacci prime number | | 5 |
| write a program for odd numbers? | | 6 |
| 34.what are bitwise shift operators?
35.what are bit fields? What is the use of bit fields in a
structure declaration?
36.what is the size of an integer variable?
37.what are the files which are automatically opened when a
c file is executed?
38.what is the little endian and big endian?
39.what is the use of fflush() function?
40.what is the difference between exit() and _exit() functions?
41.where does malloc() function get the memory?
42.what is the difference between malloc() and calloc()
function?
43.what is the difference between postfix and prefix unary
increment operators? | | 2 |
| If "AaBbCc" is passed to the char
char x(*a)
{
a[0]?x(a+1):1;
printf("%c",a[0]);
return 1;
}
what will be the output?
| Hughes | 5 |
| wats the diference btwen constant pointer and pointer to a
constant.pls give examples. | | 6 |
| related to rdbms query . | | 1 |
| whether itis a structured language? | Microsoft | 1 |
| Study the code:
void show()
main()
{
show();
}
void show (char *s)
{
printf("%sn",s);
}
What will happen if it is compiled & run on an ANSI C
Compiler?
A)It will compile & nothing will be printed when it is
executed
B)it will compile but not link
C)the compiler will generate an error
D)the compiler will generate a warning
| Accenture | 4 |
| |
| For more C Interview Questions Click Here |