| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the purpose of Scanf Print, getchar, putchar,
function? | | 2 |
| AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST? | HCL | 9 |
| what is differnence b/w macro & functions | | 1 |
| char S;
char S[6]= " HELLO";
printf("%s ",S[6]);
output of the above program ?
(0, ASCII 0, I,unpredictable)
| Mascot | 3 |
| main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
| CitiGroup | 3 |
| wap in c to accept a number display the total count of digit | | 4 |
| What is the result
main()
{
char c=-64;
int i=-32
unsigned int u =-16;
if(c>i){
printf("pass1,");
if(c<u)
printf("pass2");
else
printf("Fail2");}
else
printf("Fail1);
if(i<u)
printf("pass2");
else
printf("Fail2")
}
a)Pass1,Pass2
b)Pass1,Fail2
c)Fail1,Pass2
d)Fail1,Fail2
e)none
| IBM | 7 |
| i want to know aptitude questions,technical questions | | 1 |
| what is the function of void main()? | | 4 |
| What's wrong with "char *p; *p = malloc(10);"? | | 5 |
| how many times of error occur in C | | 7 |
| Explain in detail how strset (string handling function
works )pls explain it with an example. | | 1 |
| How to use c/c++ code in JAVA | Satyam | 4 |
| How many types of linked lists what are they?
How many types of data structures? | | 3 |
| Given an array of numbers, except for one number all the
others occur twice. Give an algorithm to find that number
which occurs only once in the array. | | 1 |
| difference between semaphores and mutex? | | 1 |
| why TCS selected more student in the software field from
all institution. | TCS | 3 |
| what is out put of the following code?
#include
class Base
{
Base()
{
cout<<"constructor base";
}
~Base()
{
cout<<"destructor base";
}
}
class Derived:public Base
{
Derived()
{
cout<<"constructor derived";
}
~Derived()
{
cout<<"destructor derived";
}
}
void main()
{
Base *var=new Derived();
delete var;
}
| Honeywell | 2 |
| Can we write a program without main() function? | | 6 |
| difference between memcpy and strcpy | | 1 |
| |
| For more C Interview Questions Click Here |