| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the diffences between Windows XP and Windows Visa
| Aricent | 1 |
| How can I set an array's size at run time? | | 7 |
| Write a program to interchange two variables without using
the third variable? | Accenture | 11 |
| Write a program to generate prime factors of a given integer? | | 1 |
| Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ?
| Mascot | 3 |
| 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 |
| Why data types in all programming languages have some range?
Why ritche have disigned first time likethat?Why not a
single data type can support all other types? | Excel | 1 |
| why i join syntel? | Syntel | 12 |
| main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
| ME | 2 |
| swap two integer variables without using a third temporary
variable? | | 2 |
| write a c program to print the values in words
eg:- 143 written it has (one hundred and forty three)&
104, 114 are also written words | | 1 |
| int a=2,b=3,c=4;
printf("a=%d,b=%d\n",a,b,c);
what is the o/p? | Verifone | 6 |
| what is the output of the following program and explain the
answer
#include<stdio.h>
exp()
{
main(5)
}
main(int a)
{
printf("%d",a);
return;
} | Satyam | 3 |
| What's the difference between struct x1 { ... }; and
typedef struct { ... } x2; ?
| | 3 |
| What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"? | | 1 |
| what is the use of a array in c | | 4 |
| What is the difference between constant pointer and pointer
to a constant. Give examples. | TCS | 4 |
| wite a programme in c to linear search a data using flag and
without using flags? | TCS | 3 |
| 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? | | 5 |
| how to find out the reverse number of a digit if it is
input through the keyboard? | | 2 |
| |
| For more C Interview Questions Click Here |