| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| main()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("India\n");
}
output? | Ramco | 6 |
| WAP to convert text into its ASCII Code and also write a
function to decode the text given? | | 2 |
| difference of two no's with out using - operator | | 6 |
| Hi,
main()
{
}
Is a user defined function or Built in Functionn | Honeywell | 9 |
| AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST? | HCL | 12 |
| why the execution starts from main function | | 9 |
| What should not contain a header file? | | 2 |
| two progs are given. one starts counting frm 0 to MAX and
the other stars frm MAX to 0. which one executes fast.
| Verifone | 5 |
| Function to find the given number is a power of 2 or not? | Motorola | 12 |
| wap in c to accept n number display the highest and lowest
value | | 2 |
| what is a function pointer and how all to declare ,define
and implement it ??? | Honeywell | 3 |
| To find whether a number is even or odd without using any
conditional operator?? | IBM | 4 |
| f(char *p)
{
p=(char *)malloc(sizeof(6));
strcpy(p,"HELLO");
}
main()
{
char *p="BYE";
f(p)
printf("%s",p);
}
what is the output?
| Hughes | 6 |
| how to make program without <> in library.
| ADITI | 1 |
| There are 3 baskets of fruits with worng lables,one basket
has apple,another basket has orange,another has combination
of apple and orange,what is the least way of interchange
the lables. | Google | 10 |
| in C-programming language without using printf statement
can we get output r not ? if yes how and if no also how ?
| | 6 |
| how to print value of e(exp1)up to required no of digits
after decimal? | | 1 |
| who did come first hen or agg | Infosys | 12 |
| what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
} | | 4 |
| how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--); | RMSI | 16 |
| |
| For more C Interview Questions Click Here |