Thread TagsAdobe Illustrator Adobe InDesign Adobe Photoshop Android Development Android Programming Android Studio Automation Testing C / C++ Programming Career Options College Lounge css digital marketing Digital Marketing / SEO Fireworks Graphic Design Graphic designing Graphics Design Graphics Designing HTML? Illustrator Internship Training java classes in pune java training institute in pune logo Design logo designing Magento Photoshop PHP Programming QA react-native SEO Single Page Website Testing Typography UI UI/UX Development UI Design UI Designing UI development User Interface UX Design Web Designing Website Design Wordpress wp
Log in with your username and password
Register for free!
Registration at Smart Mentors is completely free and takes only a few seconds. By registering you’ll gain:
- Full Posting Privileges.
- Access to Private Messaging.
- Optional Email Notification.
- Ability to Fully Participate.
- Author Replies
- February 18, 2019 at 10:24 am #53731
1) Register keyword implies that of conceivable to store the variable in the register than store it in the register.
2) Variables are generally stored in stacks and are passed back and forth to a processor at whatever point required.
3) Also, register keyword when utilized decreased code size which is something critical in an embedded system.
Registers are quicker than memory to get to, so the variables which are most every now and again utilized in a C program can be placed in registers utilizing register keyword. The keyword register clues to the compiler that a given variable can be placed in a register. It’s compiler’s decision to place it in a register or not.
1) If you use an operator with a register variable then the compiler may give an error or cautioning : –
register int i = 10;
int *a = &i;
2) Register keyword can be utilized with Pointer Variables: –
int i = 10;
register int *a = &i;
3) The register is a storage class, and C doesn’t permit different storage class specifiers for a variable: –
int i = 10;
register static int *a = &i;
There is no restriction on a number of register variables in a C program, yet the fact of the matter is compiler may put a few variables in the register and some not.
You must be register. Registration is 100% free.to reply to this thread.Please or