| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a program to generate 1st n fibonacci prime number | | 1 |
| i want to have a program to read a string and print the
frequency of each character and it should work in turbo c | | 2 |
| 2. 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 | 2 |
| what is diff b/w huge & far & near pointer?? | HCL | 1 |
| In the following code segment what will be the result of the
function,
value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
| IBM | 1 |
| write a program structure to find average of given number | | 1 |
| wap in c to accept a number display the total count of digit | | 4 |
| implement general tree using link list | Wipro | 1 |
| what is the diff b/w static and non static variables in C.
Give some examples plz. | Wipro | 2 |
| 2.main
{
int x,j,k;
j=k=6;x=2;
x=j*k;
printf("%d", x);
| HCL | 6 |
| write a program to find out number of on bits in a number?
| Huawei | 12 |
| how can i get output like this?
1
2 3
4 5 6 | Excel | 3 |
| why the execution starts from main function | | 9 |
| pgm to find middle element of linklist(in efficent manner) | Huawei | 2 |
| write a recursive program in'c'to find whether a given five
digit number is a palindrome or not | | 1 |
| How the processor registers can be used in C ? | HP | 4 |
| What are the phases in s/w developed life cycle?
wat is the diff b/w stack & queue...where do we use stack | | 5 |
| CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position. | Adobe | 4 |
| Write a C program that reads a series of strings and prints
only those ending in "ed" | | 2 |
| Write a program to write a given string in maximum
possibilities?
i.e str[5]="reddy";
i.e we can write this string in 120 ways
for that write a program | Subex | 3 |
| |
| For more C Interview Questions Click Here |