main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
Answers were Sorted based on User's Feedback
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
What's the difference between a linked list and an array?
how many key words availabel in c a) 28 b) 31 c) 32
to convert a string without using decrement operater and string functions
Write a programe print the sum of series 0,1,2,.....10
What is function prototype?
What is cohesion and coupling in c?
program to find the roots of a quardratic equation
Why is struct padding needed?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
5 Answers TCS, Vimukti Technologies,
Write a programm such that if user enter 11.25 it roundup to 11 but if user enter 11.51 upto 11.99 it will round up to 12 i.e.;convert the floting point value into integer format as explain above..
what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d",&i,&j)); }