| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| WAP to convert text into its ASCII Code and also write a
function to decode the text given? | | 2 |
| c programming of binary addition of two binary numbers
| | 1 |
| the format specified for hexa decimal is
a.%d
b.%o
c.%x
d.%u
| TCS | 4 |
| Give me basis knowledge of c , c++... | | 4 |
| consider the following structure:
struct num nam{
int no;
char name[25];
};
struct num nam
n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};
.....
.....
printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);
What does the above statement print?
a.8,9
b.9,9
c.8,8
d.8,unpredictable value
| TCS | 3 |
| can i know the source code for reversing a linked list with
out using a temporary variable?
| Honeywell | 6 |
| Hai why 'c' is the middle language | | 2 |
| what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}
| Motorola | 1 |
| create an SINGLE LINKED LISTS and reverse the data in the
lists completely | | 3 |
| What is alloca() and why is its use discouraged? | | 1 |
| what is calloc and malloc? | | 1 |
| how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
| TCS | 7 |
| Write a program to write a given string in maximum
possibilities?
i.e str[5]="reddy";
i.e we can write this string in 120 ways
for that write a program | Subex | 3 |
| hi how to convert program from notepad to turboc editor can
u please help me | | 1 |
| Is the following code legal?
struct a
{
int x;
struct a b;
}
| | 3 |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| const char *
char * const
What is the differnce between the above tow?.
| TCS | 5 |
| Result of the following program is
main()
{
int i=0;
for(i=0;i<20;i++)
{
switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}
a)0,5,9,13,17
b)5,9,13,17
c)12,17,22
d)16,21
e)syntax error
| IBM | 4 |
| the number 138 is called well ordered number because the
three digits in the number (1,3,8) increase from left to right
(1<3<8). the number 365 is not well ordered coz 6 is larger
than 5.
write a program that wull find and display all possible
three digit well ordered numbers.
sample:
123,124,125,126,127,128,129,134
,135,136,137,138,139,145,146,147
148
149,156.......789 | | 3 |
| how to find the binary of a number? | Infosys | 5 |
| |
| For more C Interview Questions Click Here |