| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How to convert a binary number to Hexa decimal number??
(Note:Do not convert it into binary and to Hexadecimal) | Subex | 1 |
| 52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2? | | 6 |
| can we write a program in c for printf and scanf without
using header file stdio.h | | 1 |
| Why preprocessor should come before source code?
| | 2 |
| what is the difference b/w compiler and debugger? | Assurgent | 1 |
| what is differnence b/w macro & functions | | 1 |
| what is op?
for(c=0;c=1000;c++)
printf("%c",c); | Trigent | 18 |
| How can I return multiple values from a function? | | 4 |
| which of the following statements is incorrect
a.typedef struct new{
int n1;
char n2;
} DATA;
b.typedef struct {
int n3;
char *n4;
}ICE;
c.typedef union {
int n5;
float n6;
} UDT;
d.#typedef union {
int n7;
float n8;
} TUDAT;
| TCS | 5 |
| WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N
TIMES C COMES N TIMES D COMES N TIMES AND SO ON.........
AT LAST UNTIL Z COMES N TIMES...............
| | 3 |
| given the piece of code
int a[50];
int *pa;
pa=a;
to access the 6th element of the array which of the
following is incorrect?
a.*(a+5)
b.a[5]
c.pa[5]
d.*(*pa + 5)
| TCS | 5 |
| Hai why 'c' is the middle language | | 2 |
| void main()
{int a[5],i,b=16;
for(i=0;i<5;i++)
a[i]=2*i;
f(a,5,b);
for(i=0;i<5;i++)
printf("\n %d",a[i]);
printf("\n %d",b);
}
f(int *x,int n,int y)
{
int i;
for(i=0;i<n;i++)
*(x+i)+=2;
y=y+2;
}wat r the errors in the prg.and improvise the prg to get o/p.? | | 2 |
| wite a programme in c to linear search a data using flag and
without using flags? | TCS | 3 |
| could u able to tell about suresoft technical session | | 1 |
| what are the languages used in c#? | Infosys | 1 |
| write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function. | Temenos | 4 |
| How would you write qsort? | | 1 |
| How can I implement opaque (abstract) data types in C?
What's the difference between these two declarations?
struct x1 { ... };
typedef struct { ... } x2;
| | 2 |
| what is pointer ? | Kernex-Micro-Systems | 7 |
| |
| For more C Interview Questions Click Here |