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



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

Answer / 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

More C Interview Questions

what is data structure

5 Answers   Maveric, TCS,


Describe newline escape sequence with a sample program?

0 Answers  


C program to perform stack operation using singly linked list

3 Answers  


Why do we write return 0 in c?

0 Answers  


Write a program to show the workingof auto variable.

2 Answers   Infotech,


what are the interview question's in the language c

2 Answers   Nipuna,


Are the variables argc and argv are local to main?

0 Answers   TISL,


Please write the area of a RIGHT ANGLED TRIANGLE.

1 Answers  


why ordinary variable store the later value not the initial

1 Answers  


What is return type in c?

0 Answers  


What's the difference between constant char *p and char * constant p?

0 Answers   Celstream,


How would you write qsort?

1 Answers  


Categories