| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is dangling pointer? | LG-Soft | 1 |
| what does the following function print?
func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}
| TCS | 8 |
| HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I
NEED AN ANSWER THAT IMPRESS THE INTERVIEWER | | 2 |
| main()
{
int a = 65;
printf(“%d %o %x”,a,a,a);
}
Output
65 101 41
Please explain me.How it is coming like that?
| Excel | 2 |
| 52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2? | | 6 |
| What are data breakpoints? | Adobe | 1 |
| what is the difference between. system call and library
function? | CDAC | 2 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| Is there any restriction in how many arguments printf or
scanf function can take?
in which file in my c++ compiler i can see the code for
implementation of these two functions?? | | 3 |
| what is difference b/w extern & volatile variable?? | Teleca | 2 |
| what are the interview question's in the language c | Nipuna | 1 |
| suppose we use switch statement and we intilize years name
using enum statement like(jan,feb,mar,------dec) we take
integer value as an input .question is that the month which
we analyz is from 0 to 11 bt if i enter 12 than how he
again starts from begning and print jan | | 1 |
| Is reference used in C? | | 1 |
| In the following control structure which is faster?
1.Switch
2.If-else
and which consumes more memory? | | 4 |
| prototype of sine function. | Cadence | 2 |
| Why the use of alloca() is discouraged?
| Oracle | 2 |
| write a recursive program in'c'to find whether a given five
digit number is a palindrome or not | | 1 |
| What is true about the following
C Functions
a.Need not return any value
b.Should always return an integer
c.Should always return a float
d.Should always return more than one value.
| TCS | 7 |
| print the following using nested for loop.
5 4 3 2 1
1 2 3 4
3 2 1
1 2
1
2 1
1 2 3
4 3 2 1
1 2 3 4 5 | | 5 |
| what r callback function? | | 1 |
| |
| For more C Interview Questions Click Here |