| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 |
| pgm to find number of words starting with capital letters
in a file(additional memory usage not allowed)(if a word
starting with capital also next letter in word is capital
cann't be counted twice) | Subex | 1 |
| how to find turn around time in operating system? | | 1 |
| write a program structure to find average of given number | | 1 |
| program to find middle element of linklist? | Huawei | 1 |
| main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output? | Ramco | 4 |
| what will be the output:
main(){char ch;int a=10;printf("%d",ch);} | Wipro | 29 |
| what is real time system?what is the differance between hard
and soft real time systems | | 2 |
| wite a programme in c to linear search a data using flag and
without using flags? | TCS | 3 |
| Can we include one C program into another C program if yes how? | Infosys | 4 |
| Why cann't whole array can be passed to function as value. | | 1 |
| Write a program to generate prime factors of a given integer? | | 1 |
| how to impliment 2 or more stacks in a single dimensional
array ? | iFlex | 1 |
| read the folllowing code
# define MAX 100
# define MIN 100
....
....
if(x>MAX)
x=1;
else if(x<MIN)
x=-1;
x=50;
if the initial value of x=200,what is the vlaue after
executing this code?
a.200
b.1
c.-1
d.50
| TCS | 2 |
| write a code for large nos multilication (upto 200 digits) | Persistent | 1 |
| what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
} | | 4 |
| what is the output of the following program?
#include<stdio.h>
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
} | | 10 |
| how many header file is in C language ? | | 14 |
| pgm to reverse string using arrays i.e god is love becomes
love is god)
(assumption:only space is used for seperation of words)
no addtional memory used.i.e no temporary arrays can used. | Persistent | 4 |
| main()
{
int a = 65;
printf(“%d %o %x”,a,a,a);
}
Output
65 101 41
Please explain me.How it is coming like that?
| Excel | 2 |
| |
| For more C Interview Questions Click Here |