main()
{
int i;
for(i=0;i<5;i++)
printf("%d",1l<<i);
}
why doesn't 'l' affect the code??????

Answer Posted / c.p.senthil

In 1l, 'l' converts number 1 from int to long int.
It is a valid expression

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which is conditional construct a) if statement b) switch statement c) while/for d) goto

734


What is void pointers in c?

582


Describe explain how arrays can be passed to a user defined function

597


What do you mean by command line argument?

636


Explain what does it mean when a pointer is used in an if statement?

613






What are qualifiers and modifiers c?

540


What are c identifiers?

621


Write a program to swap two numbers without using the third variable?

591


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

652


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

670


What is indirection? How many levels of pointers can you have?

653


What is a pointer in c plus plus?

688


What is a const pointer?

630


Explain how can I convert a number to a string?

638


What is zero based addressing?

705