| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the size of an integer variable? | | 1 |
| what is the defrenece between structure and union | | 5 |
| Difference between Class and Struct.
| Motorola | 6 |
| how to find out the biggest element (or any other
operation) in an array which is dynamic. User need not to
mention the array size while executing. | | 2 |
| Difference between null pointer and dangling pointer? | Wipro | 3 |
| main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how? | | 7 |
| Print all the palindrome numbers.If a number is not
palindrome make it one by attaching the reverse to it.
eg:123
output:123321 (or) 12321 | | 2 |
| # define prod(a,b)=a*b
main()
{
int x=2;
int y=3;
printf("%d",prod(x+2,y-10)); }
the output of the program is
a.8
b.6
c.7
d.none
| TCS | 5 |
| what is diff b/w huge & far & near pointer?? | HCL | 1 |
| What will be printed as the result of the operation below:
#include<..>
int x;
int modifyvalue()
{
return(x+=10);
}
int changevalue(int x)
{
return(x+=1);
}
void main()
{
int x=10;
x++;
changevalue(x);
x++;
modifyvalue();
printf("First output:%d\n",x);
x++;
changevalue(x);
printf("Second output:%d\n",x);
modifyvalue();
printf("Third output:%d\n",x);
} | | 2 |
| Given an unsigned integer, find if the number is power of 2? | | 3 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| how to find a 5th bit is set in c program | IBM | 3 |
| Given a single Linked list with lakhs of nodes and length
unknown how do you optimally delete the nth element from the
list? | Oracle | 1 |
| main()
{
printf(5+"Vidyarthi Computers");
} | | 6 |
| In scanf h is used for | BFL | 2 |
| here is a link to download Let_Us_C_-_Yashwant_Kanetkar | | 2 |
| can you explain in brief what is "r+" mode in a file... i
know that it si used to read and modify rhe existing
content.... but explalanation about the file pointer in "r+"
mode i wann to know??????????? | Cognizent | 1 |
| Is it possible to create recycle bin in mobiles? | | 2 |
| Design a program using an array that lists even numbers and
odd numbers separately from the 12 numbers supplied by a user. | | 7 |
| |
| For more C Interview Questions Click Here |