| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Tell about strtok & strstr functions | Motorola | 2 |
| how many argument we can pas in in a function | CTS | 20 |
| #define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
{
int x=5,y=10;
swap1(x,y);
printf("%d %d\n",x,y);
swap2(x,y);
printf("%d %d\n",x,y);
}
int swap2(int a,int b)
{
int temp;
temp=a;
b=a;
a=temp;
return;
}
what are the outputs? | Ramco | 4 |
| How do I access command-line arguments? | Wipro | 2 |
| How to reverse a string using a recursive function, with
swapping? | | 4 |
| 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 | 3 |
| without using arithmatic operator solve which number is
greater?????????? | | 1 |
| write a string copy function routine? | | 1 |
| write a C code To reverse a linked list | Motorola | 2 |
| How do I initialize a pointer to a function? | | 2 |
| How would you sort a linked list? | | 1 |
| Add 2 64 bit numbers on a 32 bit machine | NetApp | 3 |
| Find string palindrome 10marks
| Honeywell | 5 |
| Write a Program to print this triangle:
*
**
*
****
*
******
*
********
*
**********
use two nested loops. | TCS | 5 |
| what is the defrenece between structure and union | | 5 |
| What is the purpose of Scanf Print, getchar, putchar,
function? | | 2 |
| write a program to generate 1st n fibonacci prime number | | 1 |
| What is volatile | | 2 |
| how to find a 5th bit is set in c program | IBM | 3 |
| 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 |
| |
| For more C Interview Questions Click Here |