| Other C C++ Errors Interview Questions |
| |
| Question |
Asked @ |
Answers |
| |
| What are the different types of errors in C and when they occur? |
| 4 |
| Display this kind of output on screen.
1
0 1
1 0 1
3. Display this kind of output on screen.
1
1 0
1 0 1
4. Display this kind of output on screen.
1
1 0
1 0 1
5.Display this kind of output on screen.
1
2 3
4 5 6
7 8 9 10
|
| 1 |
| Using string functions write a program that will accept the
name of the capital as input value and will display the
corresponding country.
------------------------
Capitals Countries
------------------------
Capitals Countries
Ottawa Canada
Moscow Russia
Rome Italy
I can't not get it to run properly
|
| 1 |
| what is the error in the following code:
main()
{
int i=400,j;
j=(i*i)/i;
} |
| 4 |
| what is meant for variable not found? |
| 3 |
| void main()
{
int i=1;
printf("%d%d%d",i,++i,i++);
}
Cau u say the output....? |
| 21 |
| Write a c-programe that input one number of four digits and find digits sum? |
| 2 |
| void main()
{
int i=5;
printf("%d",i+++++i);
} |
Hcl | 12 |
| Find the error (2.5*2=5)
(a) X=y=z=0.5,2.0-5.75
(b) s=15; |
| 3 |
| write a profram for selection sort
whats the error in it? |
| 1 |
| loop1:
{
x=i<n?(i++):0;
printf("%d",i);
exit(x);
continue;
}
Error- misplaced continue.
Doubt-1.will the exit(x) be executed for all values of x
2.will this statement go out of the program.
|
CMC | 5 |
| void main()
{
int i=5,y=3,z=2,ans;
clrscr();
printf("%d",++i + --z + i++ + --i * ++y);
i=5,y=3,z=2;
ans=++i + --z + i++ + --i * ++y;
printf("\n%d",ans);
getch();
}
Its output is 37 and 31....
Please explain me why its different
How it works..... |
| 1 |
| |
| For more C C++ Errors Interview Questions Click Here |