| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is data structure
| | 4 |
| How can I return multiple values from a function? | | 4 |
| YBJBU6 | | 1 |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| Explain in detail how strset (string handling function
works )pls explain it with an example. | | 1 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
what will happen if you executed this code? | Ramco | 4 |
| write program on arrays
| GE | 2 |
| 1. Write the function int countchtr(char string[ ], int ch);
which returns the number of times the character ch appears
in the string.
Example, the call countchtr(“She lives in NEWYORK”, ‘e’)
would return 3.
| | 2 |
| what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}
| Motorola | 1 |
| how to estimate the disk access time?
e.g. the time between read one byte and another byte in the
disk. | Google | 3 |
| write a program to sort the elements in a given array in c
language | | 2 |
| plz answer.. a program that takes a string e.g. "345" and
returns integer 345 | | 3 |
| what is the hexidecimal number of 4100? | Google | 14 |
| please give me answer with details
#include<stdio.h>
main()
{
int i=1;
i=(++i)*(++i)*(++i);
printf("%d",i);
getch();
} | | 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 |
| What's wrong with "char *p; *p = malloc(10);"? | | 5 |
| what is the code for getting the output as
*
**
*** | Caritor | 5 |
| what is the use of getch() function in C program..
difference b/w getch() and getche()?? | Wipro | 12 |
| How would you write qsort? | | 1 |
| for example user gives input as " 20 or 20.0 or rs 20.0 or
20.00 or rs20 and so .. on " and the output should be
stored as " rs.20.00 " in a variable | | 2 |
| |
| For more C Interview Questions Click Here |