| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the diff b/w static and non static variables in C.
Give some examples plz. | Wipro | 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 | 3 |
| how many keywords do C compile? | Microsoft | 2 |
| can anyone proide me reading material on
svit00ef27@yahoo.com please thanx in advance
| IBM | 1 |
| void main()
{
char far *farther,*farthest;
printf("%d..%d",sizeof(farther),sizeof(farthest));
}
| ME | 3 |
| how to find sum of digits in C?
| CTS | 10 |
| what are brk, sbrk?
| Oracle | 1 |
| What are bit fields? What is their use? | Adobe | 1 |
| if a five digit number is input through the keyboard, write
a program to calculate the sum of its digits.
(hint:-use the modulus operator.'%') | | 9 |
| I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it? | | 3 |
| how to find the size of the data type like int,float
without using the sizeof operator? | | 7 |
| what are two categories of clint-server application
development ? | | 1 |
| Who had beaten up hooligan "CHAKULI" in his early college days? | | 1 |
| main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
} | NDS | 15 |
| how can i make a program with this kind of output..
Enter a number: 5
0
01
012
0123
01234
012345
01234
0123
012
01
0 | Wipro | 4 |
| Given an array of characters, how would you reverse it? How
would you reverse it without using indexing in the array? | | 1 |
| main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs? | CitiGroup | 7 |
| #define f(x)
main()
{
printf("\n%d",f(2+2));
} | | 3 |
| What is meant by global static? why we have to use static
variable instead of Global variable | L&T | 2 |
| Main must be written as
a.the first function in the program
b.Second function in the program
c.Last function in the program
d.any where in the program
| TCS | 12 |
| |
| For more C Interview Questions Click Here |