EFI Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
1
of 1 vote

Storage: Static Variables are always stored in static area of the program.
Scope: If there are define outside functions (global), then they are visible to all the functions in the file, but not in the other files.

Globals are also stored in the static area, but are visible to all the files that are linked. So functions in other files can link to global variables using extern, but they can link to static variable.

- CareerCup August 25, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static variable is only visiable in that specific function although it's stored in global data area.

Global variable is visiable to all functions.

- Anonymous August 25, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static variable always have linkage within a file where they declared but the global varible have external linkage :)

- geeks August 25, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static variables are similar to global variables except its abstraction property

- intruder August 26, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Storage: Static Variables are always stored in static area of the program.
Scope: If there are define outside functions (global), then they are visible to all the functions in the file, but not in the other files.

Globals are also stored in the static area, but are visible to all the files that are linked. So functions in other files can link to global variables using extern, but they can link to static variable.

- pragya December 07, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static variables== IF A VARIABLE IS STATIC AND LOCAL THEN FUNCTION DIE BUT THE VRIABLE DOES NOT DIE. THE VARIABLE STILL ALIVE IT DIE WHEN THE PROCESS DIE.

GLOBAL VARIABLE== THESE VARIABLES DIE WHEN THE PROCESS DIES AND THEY ARE ACCESSIBE FROM ONE FILE TO ANOTHER FILE ALSO BY USING THE EXTERN DECLARATION

- Anonymous December 07, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static variables== IF A VARIABLE IS STATIC AND LOCAL THEN FUNCTION DIE BUT THE VRIABLE DOES NOT DIE. THE VARIABLE STILL ALIVE IT DIE WHEN THE PROCESS DIE.

GLOBAL VARIABLE== THESE VARIABLES DIE WHEN THE PROCESS DIES AND THEY ARE ACCESSIBE FROM ONE FILE TO ANOTHER FILE ALSO BY USING THE EXTERN DECLARATION

- ESHANK December 07, 2011 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More