| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how can i get this by using for loop?
*
**
*
****
*
****** | Excel | 3 |
| What are bit fields? What is their use? | Adobe | 1 |
| 1)which of following operator can't be overloaded.
a)== b)++ c)?! d)<= | Siemens | 10 |
| main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
what is the output? | Ramco | 6 |
| How many types of linked lists what are they?
How many types of data structures? | | 4 |
| prototype of sine function. | Cadence | 2 |
| what is link list?
| | 2 |
| What is the Difference between Class and Struct? | Motorola | 9 |
| write a program to arrange the contents of a 1D array in
ascending order | | 3 |
| C program to perform stack operation using singly linked list | | 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 |
| which of the following go out of the loopo if expn 2
becoming false
a.while(expn 1){...if(expn 2)continue;}
b.while(!expn 1){if(expn 2)continue;...}
c.do{..if(expn 1)continue;..}while(expn 2);
d.while(!expn 2){if(expn 1)continue;..}
| TCS | 2 |
| void main()
{
int i=5;
printf("%d",i+++++i);
}
| ME | 12 |
| 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 to find the kth smallest element in the given list of
array elemnts.
| Silicon | 5 |
| HOW TO SWAP TWO NOS IN ONE STEP? | Satyam | 12 |
| what is the function of void main()? | | 6 |
| What's the difference between a linked list and an array?
| | 11 |
| what is const volatile? | | 1 |
| a.One Cannot Take the address of a Bit Field
b.bit fields cannot be arrayed
c.Bit-Fields are machine Dependant
d.Bit-fields cannot be declared as static
Which of the Following Statements are true w.r.t Bit-Fields
A)a,b&c B)Only a & b C)Only c D)All
| Accenture | 2 |
| |
| For more C Interview Questions Click Here |