Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 139

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 62

Answer:

main()
{
register int a=2;
printf("Address of a = %d",&a);
printf("Value of a = %d",a);
}


Answer:
Compier Error: '&' on register variable

Rule to Remember:
& (address of ) operator cannot be applied on register variables.

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 139 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: