| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| If we have an array of Interger values, find out a sub array
which has a maximum value of the array and start and end
positions of the array..The sub array must be contiguious.
Take the start add to be 4000.
For Ex if we have an array arr[] =
{-1,-2,-5,9,4,3,-6,8,7,6,5,-3}
here the sub array of max would be
{8,7,6,5} coz the sum of max contiguous array is 8+7+6+5 =
26.The start and end position is 4014(8) and 4020(5). | Microsoft | 3 |
| Why doesn't the code "a[i] = i++;" work? | | 2 |
| O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N | ADP | 7 |
| 15.what is the disadvantage of using macros?
16.what is the self-referential structure?
17.can a union be self-referenced?
18.What is a pointer?
19.What is the Lvalue and Rvalue?
20.what is the difference between these initializations?
21.Char a[]=”string”;
22.Char *p=”literal”;
23.Does *p++ increment p, or what it points to? | | 2 |
| what are the compilation steps?
( i want inside the compiler ) | | 1 |
| what is the difference between <stdio.h> and "stdio.h" | Kanbay | 5 |
| 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 | 6 |
| Print all numbers which has a certain digit in a certain
position
eg:
number=45687
1 number=4
2 number=5
etc | | 2 |
| WAP – represent a char in binary format
| Motorola | 4 |
| Program to write some contents into a file using file
operations with proper error messages. | | 1 |
| Given an array of length N containing integers between 1
and N, determine if it contains any duplicates. | | 2 |
| what are two categories of clint-server application
development ? | | 1 |
| how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
| TCS | 6 |
| What is an anonymous union and where to apply that ? | HP | 1 |
| i want explaination about the program and its stack reprasetaion
fibbo(int n)
{
if(n==1 or n==0)
return n;
else
return fibbo(n-1)+fibbo(n-2);
}
main()
{
fibbo(6);
}
| | 2 |
| What is #pragma directive?how it is used in the program?
what is its advantages and disadvantages? | | 1 |
| How to receive strings with spaces in scanf() | | 3 |
| Who had beaten up hooligan "CHAKULI" in his early college days? | | 1 |
| What is meant by
int fun const(int a, int b) {
....
...
}
| | 1 |
| wap in c to accept n number display the highest and lowest
value | | 2 |
| |
| For more C Interview Questions Click Here |