| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 |
| Is it possible to create recycle bin in mobiles? | | 2 |
| wap in c to accept n number display the highest and lowest
value | | 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 | | 3 |
| How the processor registers can be used in C ? | HP | 4 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| plssssss help !!....using array.. turbo c..
create a program that will accept number of words to be
consored.
.a word must not exceed 10 characters long
.the text to be entered will be no longer than 200 characters
.there will be no 10 words
example:
enter number of words to be censor: 5
enter words to censor:
windows
office
microsoft
bill
gates
enter text to censor:
bill gates founded microsoft and makes office and windows
sample output:
<consored> <censored> founded <censored> and makes
<censored> and <censored> | | 1 |
| void main()
{int a[5],i,b=16;
for(i=0;i<5;i++)
a[i]=2*i;
f(a,5,b);
for(i=0;i<5;i++)
printf("\n %d",a[i]);
printf("\n %d",b);
}
f(int *x,int n,int y)
{
int i;
for(i=0;i<n;i++)
*(x+i)+=2;
y=y+2;
}wat r the errors in the prg.and improvise the prg to get o/p.? | | 2 |
| Which of these statements are false w.r.t File Functions?
i)fputs() ii)fdopen() iii)fgetpos() iv)ferror()
A)ii B)i,ii C)iii D)iv
| Accenture | 5 |
| macros and function are related in what aspect?
a)recursion b)varying no of arguments
c)hypochecking d)type declaration
| HCL | 8 |
| What is the diffrent between while and do while statement ? | | 5 |
| what is c?
| Tech-Mahindra | 5 |
| main is a predefined or user define function
if user defined why?
if predefined whay? | TCS | 2 |
| what is the code for getting the output as
*
**
*** | Caritor | 5 |
| 1.find the second maximum in an array?
2.how do you create hash table in c?
3.what is hash collision | Qualcomm | 6 |
| what is diff between localstatic and globalstatis variable
possible 2 use in another file...? | HCL | 2 |
| c program to add and delete an element from circular queue
using array | | 1 |
| write a program that finds the factorial of a number using
recursion? | | 1 |
| Why cann't whole array can be passed to function as value. | | 1 |
| main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
| ME | 2 |
| |
| For more C Interview Questions Click Here |