What is the output of following program ?

int
main()
{
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
}

Answer Posted / sudhir prasad

5 20 1 is correct answer

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of Macro over function?

1196


write a c program in such a way that if we enter the today date the output should be next day's date.

1677


Explain the red-black trees?

605


where are auto variables stored? What are the characteristics of an auto variable?

591


Explain how can a program be made to print the name of a source file where an error occurs?

686






Can a pointer be null?

560


What does the error 'Null Pointer Assignment' mean and what causes this error?

741


What is void main () in c?

725


What is dynamic dispatch in c++?

554


What does %c do in c?

584


Is c procedural or object oriented?

578


Is that possible to add pointers to each other?

899


What is the difference between class and object in c?

581


Compare and contrast compilers from interpreters.

679


What is structure padding in c?

624