| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| i want to know aptitude questions,technical questions | | 1 |
| 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?? | | 2 |
| write a program to search for an element in a given array.
If the array was found then display its position otherwise
display appropriate message in c language | | 1 |
| what does " calloc" do? | Cadence | 6 |
| Which command is more efficient?
*(ptr+1) or ptr[1] | | 3 |
| Which of the following is not an infinite loop ?
a.while(1){
....
}
b.for(;;){
...
}
c.x=0;
do{
/*x unaltered within theloop*/
...
}while(x==0);
d.# define TRUE 0
...
while(TRUE){
....
}
| TCS | 4 |
| hat is a pointer? | Assurgent | 3 |
| what is the code for getting the output as
*
**
*** | Caritor | 4 |
| What is a class? | | 1 |
| I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it? | | 3 |
| identify the in correct expression
a.a=b=3=4;
b.a=b=c=d=0;
float a=int b=3.5;
d.int a;
float b;
a=b=3.5;
| TCS | 4 |
| 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 |
| what is the benefit of c30 | | 1 |
|
#include<stdio.h>
int SumElement(int *,int);
void main(void)
{
int x[10];
int i=10;
for(;i;)
{
i--;
*(x+i)=i;
}
printf("%d",SumElement(x,10));
}
int SumElement(int array[],int size)
{
int i=0;
float sum=0;
for(;i<size;i++)
sum+=array[i];
return sum;
}
output? | Ramco | 5 |
| how to connect oracle in C/C++. | | 2 |
| C passes By value or By reference? | Geometric-Software | 3 |
| main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
} | NDS | 12 |
| What is the purpose of Scanf Print, getchar, putchar,
function? | | 1 |
| What is external and internal variables
What is dynamic memory allocation
what is storage classes in C | | 2 |
| what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}
| Motorola | 1 |
| |
| For more C Interview Questions Click Here |