| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How can I prevent other programmers from violating
encapsulation by seeing the private parts of my class? | | 1 |
| Write code for initializing one dimentional and two
dimentional array in a C Program? | Deshaw | 5 |
| hello friends
what do u mean by BUS ERROR
i got this error while i am doing my program in DATA STRUCTURES | Wipro | 2 |
| Is the following code legal?
struct a
{
int x;
struct a b;
}
| | 3 |
| printf("%d",(printf("Hello")); What it returns?
| TCS | 23 |
| marge linklist | HCL | 1 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| disadvantages of realloc ? | HCL | 1 |
| Convert the following expression to postfix and prefix
X $ Y Z - M + N + P / Q / (R + S)
| | 2 |
| What's the best way to declare and define global variables? | | 5 |
| find a number whether it is even or odd without using any
control structures and relational operators? | Microsoft | 14 |
| helllo sir
give me some information of the basic information the
c as printf ,scanf , %d ,%f and why is the main use of
these. | | 3 |
| what is the use of fflush() function? | | 1 |
| write a function to find whether a string is palindrome or
not and how many palindrome this string contain? | | 1 |
| write a program to search for an element in a given array.
If the array was found then display its position otherwise
display appropriate message in c language | | 3 |
| how to convert binary to decimal and decimal to binary in C
lanaguage | | 4 |
| how can i make a program with this kind of output..
Enter a number: 5
0
01
012
0123
01234
012345
01234
0123
012
01
0 | Wipro | 3 |
| write a program to check whether a given integer is a strong
number or not?
[Hint:
145=1!+4!+5!
=1+24+120
=145]
| | 4 |
| write a program to sort the elements in a given array in c
language | | 2 |
| void main()
{
int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} };
int (*p)[2];
int i,j,*pint;
for(i=0;i<=3;i++)
{
p=&s[i];
pint=p;
printf("\n");
for(j=0;j<=1;j++)
printf("%d",*(pint+j));
}
} while running this program it shows a warning-suspicious
pointer conversion ie pint=p; my que is why should we assign
the value of p to pint again.why cant we use it directly as
*(p+j)..but if i use like tat the o/p is garbage value.. | | 1 |
| |
| For more C Interview Questions Click Here |