| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is a far pointer?What is the utility? | | 2 |
| Which of the Following is not defined in string.h?
A)strspn()
B)strerror()
C)memchr()
D)strod()
| Accenture | 1 |
| main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
| CitiGroup | 4 |
| which of the function operator cannot be over loaded
a) <=
b)?:
c)==
d)*
| HCL | 7 |
| 6. Which of the Following is not defined in string.h?
A)strspn()
B)strerror()
C)memchr()
D)strod()
| Accenture | 1 |
| the operator for exponencation is
a.**
b.^
c.%
d.not available
| TCS | 4 |
| what is use#in c | | 3 |
| what is dangling pointer? | LG-Soft | 1 |
| different between overloading and overriding | | 3 |
| main()
{
clrscr();
}
clrscr();
| ME | 3 |
| 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 | 11 |
| Here is alphabets : abcdefgh
1) how to reverse. as hgfedcba
2) after reversal, how to group them in a pair hg fe dc ba.
| | 2 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 8 |
| can we print any string without using terminator? | Infosys | 2 |
| What's the difference between calloc() and malloc()? | | 3 |
| Find string palindrome 10marks
| Honeywell | 5 |
| who is the founder of c | HP | 9 |
| Write a program to remove the C comments(/* */) and C++
comments(//) from a file.
The file should be declared in command line. | Subex | 2 |
| define function | Assurgent | 4 |
| Main must be written as
a.the first function in the program
b.Second function in the program
c.Last function in the program
d.any where in the program
| TCS | 12 |
| |
| For more C Interview Questions Click Here |