| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is a symbolic constant? | | 1 |
| N O S I E R
+ A S T R A L
----------------
7 2 5 6 1 3 | Honeywell | 2 |
| I have an array of 100 elements, each of which is a random
integer. I want to know which of the elements:
a) are multiples of 2
b) are multiples of 2 AND 5
c) have a remainder of 3 when divided by 7 | | 1 |
| wite a programme in c to linear search a data using flag and
without using flags? | TCS | 3 |
| how to find out the biggest element (or any other
operation) in an array which is dynamic. User need not to
mention the array size while executing. | | 2 |
| Write a C program to print 1 2 3 ... 100 without using
loops? | | 5 |
|
#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 |
| n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
| Wipro | 4 |
| Dear Sir,
we are required the bubble sorting programs
Regs
Prem | | 1 |
| Name the language in which the compiler of "c" in written? | Bajaj | 1 |
| what is the difference between these initializations?
Char a[]=”string”;
Char *p=”literal”;
Does *p++ increment p, or what it points to?
| | 2 |
| How to avoid structure padding in C? | Tech-Mahindra | 4 |
| a C prog to swap 2 no.s without using variables just an
array? | TCS | 4 |
| Write a program that takes three variables(a,b,c) in as
separate parameters and rotates the values stored so that
value a goes to b,b,to c and c to a | | 3 |
| The C language terminator is
a.semicolon
b.colon
c.period
d.exclamation mark
| TCS | 3 |
| Difference between fopen() and open()? | Aricent | 3 |
| how we can make 3d venturing graphics on outer interface | Microsoft | 1 |
| what are the languages used in c#? | Infosys | 1 |
| #include<stdio.h>
int fun();
int i;
int main()
{
while(i)
{
fun();
main();
}
printf("hello \n");
return 0;
}
int fun()
{
printf("hi");
}
answer is hello.how??wat is tat while(i) mean? | Intel | 4 |
| implement general tree using link list | Wipro | 1 |
| |
| For more C Interview Questions Click Here |