| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What's a "sequence point"? | | 2 |
| Hi,
main()
{
}
Is a user defined function or Built in Functionn | Honeywell | 9 |
| 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 |
| how to make program without <> in library.
| ADITI | 1 |
| char ch="{'H','I',0};printf("%s",ch);what is output | Accenture | 9 |
| What is the difference b/w main() in C language and main()
in C++. | | 6 |
| Look at the Code:
#include<string.h>
void main()
{
char s1[]="abcd";
char s2[10];
char s3[]="efgh";
int i;
clrscr();
i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd"));
printf("%d",i);
}
What will be the output?
A)No output B) A Non Integer C)0 D) Garbage
| Accenture | 5 |
| prototype of sine function. | Cadence | 2 |
| number 2 plssssss help !!....using array.. turbo c..
create a program that will accept a number and determine if
it is a happy number or an unhappy number..
example:
enter a number : 7
7*7=49
then 4 and 9
4*4 and 9*9== 16 + 18 gives you 97
then 9 and 7
9*9 and 7*7 == 81 + 49 gives you 130
then 1 and 3
1*1 and 3*3 == 1 + 9 gives you 10
1*1 gives you 1
sample output:
7= 49= 16+81= 97= 81+49=130 =1+9=10 =1
"7 is a happy number"
. if the last number is 2 then the number being inputed is
not a happy number.
| | 2 |
| What is RAM memory? and What is ROM?Who designed one is
temparary and another is permanent?why they designed like
that?By using far pointer which type data(whether
hexadecimal)we can access? | Excel | 1 |
| Write a program to compute the following
1!+2!+...n! | | 3 |
| which will be first in c compiling ,linking or compiling
,debugging. | Sonata | 3 |
| HOW TO HANDLE EXCEPTIONS IN C | | 5 |
| Every time i run a c-code in editor,
getting some runtime error and editor is disposing,
even after reinstalling the software
what may be the problem? | | 2 |
| Program to display given 3 integers in ascending order | N-Tech | 1 |
| i want to know aptitude questions,technical questions | | 2 |
| While(1)
{
}
when this loop get terminate is it a infinite loop? | | 4 |
| f()
{
int a=2;
f1(a++);
}
f1(int c)
{
printf("%d", c);
}
c=?
| Geometric-Software | 2 |
| what will be the result of the following program ?
char *gxxx()
{
static char xxx[1024];
return xxx;
}
main()
{
char *g="string";
strcpy(gxxx(),g);
g = gxxx();
strcpy(g,"oldstring");
printf("The string is :
%s",gxxx());
}
a) The string is : string
b) The string is :Oldstring
c) Run time error/Core dump
d) Syntax error during compilation
e) None of these
| IBM | 2 |
| Write a program for deleting duplicate elements in an array | Subex | 3 |
| |
| For more C Interview Questions Click Here |