| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Write a program to remove the C comments(/* */) and C++
comments(//) from a file.
The file should be declared in command line. | Subex | 1 |
| Difference Between embedded software and soft ware? | Bosch | 1 |
| How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance | US-Technology | 5 |
| printf("%d",(printf("Hello")); What it returns?
| TCS | 18 |
| What is the purpose of Scanf Print, getchar, putchar,
function? | | 2 |
| write a program to insert an element at the specified
position in the given array in c language | | 1 |
| How to reverse a string using a recursive function, without
swapping or using an extra memory? | Motorola | 15 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 7 |
| pgm to find middle element of linklist(in efficent manner) | Huawei | 1 |
| how does the C compiler interpret the following two statements
p=p+x;
q=q+y;
a.p=p+x;
q=q+y
b.p=p+xq=q+y
c.p=p+xq;
q=q+y
d.p=p+x/q=q+y
| TCS | 2 |
| fun(int x)
{
if(x > 0)
fun(x/2);
printf("%d", x);
}
above function is called as:
fun(10);
what will it print?
} | NDS | 12 |
| what is the advantage of software development | | 1 |
| WAP to accept basic salary of an employee?
Calculate it HRA=25%,DA=30%,PF=30%&net salary display all
contents? | | 3 |
| Struct(s)
{
int a;
long b;
}
Union (u)
{int a;
long b;
}
Print sizeof(s)and sizeof(u) if sizeof(int)=4 and
sizeof(long)=4
| Mascot | 2 |
| write a c program to check weather a particluar bit is set
or not? | IBM | 2 |
| how to exchnage bits in a byte
b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3
please mail me the code if any one know to
rajeshmb4u@gmail.com | Honeywell | 3 |
| If "AaBbCc" is passed to the char
char x(*a)
{
a[0]?x(a+1):1;
printf("%c",a[0]);
return 1;
}
what will be the output?
| Hughes | 5 |
| what is volatile in c language? | TCS | 1 |
| write a program to find the number of even integers and odd
integers in a given array in c language | Olive-Tech | 2 |
| enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
| HCL | 2 |
| |
| For more C Interview Questions Click Here |