| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is memmove? | Oracle | 1 |
| write a “Hello World” program in “c” without using a semicolon? | | 3 |
| 10. Study the code:
void show()
main()
{
show();
}
void show (char *s)
{
printf("%sn",s);
}
What will happen if it is compiled & run on an ANSI C
Compiler?
A)It will compile & nothing will be printed when it is
executed
B)it will compile but not link
C)the compiler will generate an error
D)the compiler will generate a warning
| Accenture | 4 |
| what is the associativity of bitwise OR operator? | | 1 |
| main is a predefined or user define function
if user defined why?
if predefined whay? | TCS | 2 |
| differentiate between
const char *a;
char *const a; and
char const *a;
| HCL | 1 |
| what is op?
for(c=0;c=1000;c++)
printf("%c",c); | Trigent | 18 |
| hi how to convert program from notepad to turboc editor can
u please help me | | 1 |
| i want the code for printing the output as follows
4 4
3 3
2 2
1 1
0
1 1
2 2
3 3
4 4 | | 1 |
| tell me the full form of c? | | 2 |
| why i join syntel? | Syntel | 12 |
| Is reference used in C? | | 1 |
| 2. Counting in Lojban, an artificial language developed
over the last fourty years, is easier than in most languages
The numbers from zero to nine are:
0 no
1 pa
2 re
3 ci
4 vo
5 mk
6 xa
7 ze
8 bi
9 so
Larger numbers are created by gluing the digit togather.
For Examle 123 is pareci
Write a program that reads in a lojban string(representing
a no less than or equal to 1,000,000) and output it in
numbers.
| Nagarro | 2 |
| write a program to arrange the contents of a 1D array in
ascending order | | 3 |
| How we add our function in liabrary as liabrary function.
Exp. we want use our int factorical(int); function as int
pow(int,int); function working in math header file. | | 1 |
| write a program that finds the factorial of a number using
recursion? | | 1 |
| write a program to find out number of on bits in a number?
| Huawei | 12 |
| i want explaination about the program and its stack reprasetaion
fibbo(int n)
{
if(n==1 or n==0)
return n;
else
return fibbo(n-1)+fibbo(n-2);
}
main()
{
fibbo(6);
}
| | 2 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 8 |
| What will be result of the following program?
void myalloc(char *x, int n)
{
x= (char *)malloc(n*sizeof(char));
memset(x,\0,n*sizeof(char));
}
main()
{
char *g="String";
myalloc(g,20);
strcpy(g,"Oldstring");
printf("The string is %s",g);
}
a) The string is : String
b) Run time error/Core dump
c) The string is : Oldstring
d) Syntax error during compilation
e) None of these
| IBM | 3 |
| |
| For more C Interview Questions Click Here |