| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Explain following declaration
int *P(void);
and
int (*p)(char *a);
| | 2 |
| what will be the output:
main(){char ch;int a=10;printf("%d",ch);} | Wipro | 25 |
| a=0;
b=(a=0)?2:3;
a) What will be the value of b? why
b) If in 1st stmt a=0 is replaced by -1, b=?
c) If in second stmt a=0 is replaced by -1, b=?
| Geometric-Software | 5 |
| Write a program to interchange two variables without using
the third variable? | Accenture | 9 |
| explain memory layout of a C program | | 1 |
| int *a[5] refers to | TCS | 7 |
| What is structure padding & expalain wid example
what is bit wise structure? | | 1 |
| how to sort two array of characters and make a new array of
characters. | Accenture | 1 |
| how many times of error occur in C | | 7 |
| How would you write qsort? | | 1 |
| how memory store byte
| Huawei | 3 |
| what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
} | | 2 |
| The differences between Windows XP and Windows Visa
| HCL | 6 |
| WAP – represent a char in binary format
| Motorola | 4 |
| in C-programming language without using printf statement
can we get output r not ? if yes how and if no also how ?
| | 4 |
| Write a program that accepts a string where multiple spaces
are given in between the words. Print the string ignoring
the multiple spaces.
Example:
Input: “ We.....Are....Student “ Note: one .=1 Space
Output: "We Are Student" | IBM | 3 |
| What is memmove? | Oracle | 1 |
| void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case | TCS | 5 |
| Write a Program to print this triangle:
*
**
*
****
*
******
*
********
*
**********
use two nested loops. | | 4 |
| who is the founder of c | HP | 7 |
| |
| For more C Interview Questions Click Here |