| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the differance between pass by reference and pass
by value. | Infosys | 4 |
| Find string palindrome 10marks
| Honeywell | 5 |
| write a program for even numbers? | | 8 |
| program for comparing 2 strings without strcmp() | | 3 |
| write a program that explain #define and # undef directive | | 1 |
| what is use of loop? | Infosys | 6 |
| How can I invoke another program from within a C program? | | 6 |
| swap two integer variables without using a third temporary
variable? | | 2 |
| Write a C Programm..
we press 'a' , it shows the albhabetical number is 1, if we
press 'g' it shows the answer 7.. any can help me | | 4 |
| Write a C function to search a number in the given list of
numbers. donot use printf and scanf | Honeywell | 6 |
| what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}
| Motorola | 1 |
| What should not contain a header file? | | 2 |
| how to find the size of the data type like int,float
without using the sizeof operator? | | 7 |
| Write a program or provide a pseudo code to flip the 2nd bit
of the 32 bit number ! (Phone Screen) | NetApp | 1 |
| What is the output for the following program
#include<stdio.h>
main()
{
char a[5][5],flag;
a[0][0]='A';
flag=((a==*a)&&(*a==a[0]));
printf("%d\n",flag);
}
| ADITI | 5 |
| main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
| ME | 2 |
| how to find out the reverse number of a digit if it is
input through the keyboard? | | 2 |
| write a program to swap bits in a character and return the value
prototype of function
char fun (char a, charb flag c)
where fun returns a char, char a is a the value char b is
the bit to be changed and flag c is the bit value
for eg: x=fun(45,7,0)
since 45 is 0010 0101
and ow x should contain the value 65 (0110 0101) | Bosch | 1 |
| how many header file is in C language ? | | 14 |
| HOW DO YOU HANDLE EXCEPTIONS IN C?
| AppLabs | 2 |
| |
| For more C Interview Questions Click Here |