| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How can we open a file in Binary mode and Text mode?what is
the difference? | PanTerra | 1 |
| Who had beaten up hooligan "CHAKULI" in his early college days? | | 1 |
| The differences between Windows XP and Windows Visa
| HCL | 7 |
| implement general tree using link list | Wipro | 1 |
| Can we include one C program into another C program if yes how? | Infosys | 4 |
| CAN WE DEFINE ANY FUNCTION WITHIN A FUNCTION. | | 6 |
| what is the other ways to find a logic to print whether a
number is an even or odd wit out using % symbol??????? i
know three different ways to print it. so i need any other
different logic>>>>> | TCS | 3 |
| What should be keep precautions while using the recursion
method? | | 1 |
| 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 |
| will u give me old quesrion papers for aptitude for L & t
info tech? | L&T | 1 |
| int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
| Mascot | 9 |
| difference of two no's with out using - operator | | 6 |
| what's the return value of malloc() | | 8 |
| What is an volatile variable? | HP | 12 |
| Write an implementation of “float stringToFloat(char *str).”
The code should be simple, and not require more than the
basic operators (if, for, math operators, etc.).
• Assumptions
• Don’t worry about overflow or underflow
• Stop at the 1st invalid character and return the number
you have converted till then, if the 1st character is
invalid return 0
• Don’t worry about exponential (e.g. 1e10), instead you
should treat ‘e’ as an invalid character
• Write it like real code, e.g. do error checking
• Go though the string only once
• Examples
• “1.23” should return 1.23
• “1a” should return 1
• “a”should return 0
| Qualcomm | 5 |
| if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND
CORRESPONDING VALUE FROM ASCII TABLE | | 1 |
| YBJBU6 | | 1 |
| Write a program to compare two strings without using the
strcmp() function | Accenture | 14 |
| the format specified for hexa decimal is
a.%d
b.%o
c.%x
d.%u
| TCS | 4 |
| Is the following code legal?
struct a
{
int x;
struct a b;
}
| | 3 |
| |
| For more C Interview Questions Click Here |