| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the output of the following code?
main()
{
int I;
I=0x10+010+10;
printf("x=%x",I);
}
give detailed reason | | 3 |
| HOW TO SWAP TWO NOS IN ONE STEP? | Satyam | 12 |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| program to find which character is occured more times in a
string and how many times it has occured? for example in
the sentence "i love india" the output should be i & 3. | | 3 |
| Design a program using an array that searches a number if it
is found on the list of the given input numbers and locate
its exact location in the list. | | 3 |
| what will happen if you free a pointer twice after
allocating memory dynamically ? | Novell | 2 |
| #include <stdio.h>
int main ( int argc, char* argv [ ] )
{
int value1 = 10;
int value2 = 5;
printf ( "\n The sum is :%d", value1 | value2 );
}
This is the answer asked by some one to add two numbers
with out using arithmetic operator?Yes this answer is write
it given out put as 15.But how?????
what is need of following line?
int main ( int argc, char* argv [ ] )
how it work?what is the meaning for this line?
please explain me.Advance thanks | Excel | 4 |
| write a function for strtok()?? | Verifone | 1 |
| Write a Program to print this triangle:
*
**
*
****
*
******
*
********
*
**********
use two nested loops. | TCS | 6 |
| What is macro? | IBM | 4 |
| Find string palindrome 10marks
| Honeywell | 5 |
| Can we access RAM?
How? Whats the range of access?
Similarly What are other hardware we can access? | | 1 |
| ABCDCBA
ABC CBA
AB BA
A A | | 1 |
| Write a program to find the smallest and largest element in
a given array in c language | Microsoft | 3 |
| main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
| CitiGroup | 7 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| void main()
{
int i=5;
printf("%d",i++ + ++i);
} | ME | 11 |
| main()
{
clrscr();
}
clrscr();
| ME | 3 |
| where does malloc() function get the memory? | | 1 |
| How do I declare a pointer to an array? | | 5 |
| |
| For more C Interview Questions Click Here |