Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Can a binary search tree be used as an index? If yes, how? Explain

0 Answers   TCS,


atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation

0 Answers  


Where can I get an ansi-compatible lint?

0 Answers  


how to count no of words,characters,lines in a paragraph.

0 Answers  


How can you convert integers to binary or hexadecimal?

0 Answers  


Explain how can I pad a string to a known length?

0 Answers  


If input is 123 then how to print 100 and 20 and 3 seperately?

4 Answers  


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

0 Answers  


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

0 Answers   Infosys,


What is the use of printf() and scanf() functions?

0 Answers  


int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

6 Answers   Hughes,


what are the advantages & disadvantages of unions?

2 Answers  


Categories