Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books

C Function Pointers


C Function Pointers: Interview Questions

Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

<<Previous  Next>>

C Function Pointers - August 06, 2008 at 13:10 PM by Amit Satpute

Explain the scope of static variables.

Answer
The scope of a static variable is local to the block in which the variable is defined. However, the value of the static variable persists between two function calls.

What is the purpose of "register" keyword.

Answer
It is used to make the computation faster.
The register keyword tells the compiler to store the variable onto the CPU register if space on the register is available. However, this is a very old technique. Todays processors are smart enough to assign the registers themselves and hence using the register keyword can actually slowdown the operations if the usage is incorrect. 

Explain the use of "auto" keyword.

Answer
When a certain variable is declared with the keyword ‘auto’ and initialized to a certain value, then within the scope of the variable, it is reinitialized upon being called repeatedly.


<<Previous  Next>>

  1. Define function pointers
  2. What is the purpose of using function pointer?



 
Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.