| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| To what value are pointers initialized?
1) NULL
2) Newly allocated memory
3) No action is taken by the compiler to initialize
pointers.
| | 2 |
| Write a program or provide a pseudo code to flip the 2nd bit
of the 32 bit number ! (Phone Screen) | NetApp | 1 |
| WAP – represent a char in binary format
| Motorola | 4 |
| what is the advantage of function pointer | TCS | 9 |
| WRITE A PROGRAM TO PRINT THE FOLLOWING OUTPUTS USING FOR
LOOPS.
A) * B) *****
*** * *
***** * *
***** | | 2 |
| write a program to print sum of each row of a 2D array.
| | 2 |
| WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
| | 3 |
| print ur name without using any semicolon in c/c++.... | | 4 |
| int *p=20;
if u print like dis printf("%d",p);
o\p:- 20; how is it possible?
plz give me the explanation. | Global-Edge | 5 |
| write a program to check whether a given integer is a strong
number or not?
[Hint:
145=1!+4!+5!
=1+24+120
=145]
| | 1 |
| HOW DO YOU HANDLE EXCEPTIONS IN C?
| AppLabs | 2 |
| Program to write some contents into a file using file
operations with proper error messages. | | 1 |
| what is the defrenece between structure and union | | 4 |
| write the function int countchtr(char string[],int
ch);which returns the number of timesthe character ch
appears in the string. for example the call countchtr("she
lives in Newyork",'e') would return 3. | | 4 |
| how we can make 3d venturing graphics on outer interface | Microsoft | 1 |
| explain memory layout of a C program | | 1 |
| 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 |
| How would you find a cycle in a linked list?
| | 2 |
| #include <stdio.h>
#define sqr(x) (x*x)
int main()
{
int x=2;
printf("value of x=%d",sqr(x+1));
}
What is the value of x?
| Oracle | 9 |
| what is the hexidecimal number of 4100? | Google | 13 |
| |
| For more C Interview Questions Click Here |