| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a program to generate 1st n fibonacci prime number | | 1 |
| what is the difference between #include<> and #include”…”? | | 1 |
| Can you think of a way when a program crashed before
reaching main? If yes how? | | 2 |
| f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
| HCL | 4 |
| Is there any restriction in how many arguments printf or
scanf function can take?
in which file in my c++ compiler i can see the code for
implementation of these two functions?? | | 3 |
| write a c program to accept a given integer value and print
its value in words | | 3 |
| can i know the source code for reversing a linked list with
out using a temporary variable?
| Honeywell | 6 |
| Explain the differences between public, protected, private
and internal. | | 1 |
| C program to perform stack operation using singly linked list | | 1 |
| what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
| Cadence | 4 |
| pgm to find number of words starting with capital letters
in a file(additional memory usage not allowed)(if a word
starting with capital also next letter in word is capital
cann't be counted twice) | Subex | 1 |
| what is the diff between the printf and sprintf functions??
and what is the syntax for this two functions ?? | | 4 |
| What is true about the following
C Functions
a.Need not return any value
b.Should always return an integer
c.Should always return a float
d.Should always return more than one value.
| TCS | 7 |
| write a program to find the number of even integers and odd
integers in a given array in c language | Olive-Tech | 2 |
| what does the following code do?
fn(int n,int p,int r)
{
static int a=p;
switch(n){
case 4:a+=a*r;
case 3:a+=a*r;
case 2:a+=a*r;
case 1:a+=a*r;
}
}
a.computes simple interest for one year
b.computes amount on compound interest for 1 to 4 years
c.computes simple interest for four year
d.computes compound interst for 1 year
| TCS | 4 |
| write a program to check whether a given integer is a strong
number or not?
[Hint:
145=1!+4!+5!
=1+24+120
=145]
| | 4 |
| What is the function of ceil(X) defined in math.h do?
A)It returns the value rounded down to the next lower
integer
B)it returns the value rounded up to the next higher integer
C)the Next Higher Value
D)the next lower value | Accenture | 3 |
| WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
| | 6 |
| What is the memory allocated by the following definition ?
int (*x)(); | ADITI | 2 |
| WRITE A PROGRAM TO FIND A REVERSE OF TWO NO | | 5 |
| |
| For more C Interview Questions Click Here |