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

Explain what is #line used for?

0 Answers  


difference between memcpy and strcpy

1 Answers  


print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5

3 Answers   Winit,


What are header files? What are their uses?

0 Answers  


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

0 Answers  






Are negative numbers true in c?

0 Answers  


What do you mean by team??

5 Answers   Student,


Explain demand paging.

1 Answers   Agilent,


What is use of #include in c?

0 Answers  


How can I invoke another program from within a C program?

8 Answers  


what is the difference between declaration and definition of a variable or function ?

3 Answers  


What is encapsulation?

2 Answers  


Categories