Samsung Interview Question
Software Engineer / DevelopersCountry: India
Interview Type: In-Person
is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
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.
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.
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.
As we know members of struct are public by default, lets implement the private access specifier behavior into the struct.
In the below samplestruct example, If you provide a samplestruct* create_struct() method as an interface to client and a series of methods that operate on samplestruct*, hiding the actual definition of samplestruct from the client, then a similar effect is achieved.
// File "samplestruct_private.h"
// File "samplestruct.h"
// file "samplestruct.c"
Distribute samplestruct.c compiled into a library, along with samplestruct.h.
- R@M3$H.N December 31, 2014The functions declared in samplestruct.h form the public interface of a type, but the internal structure of that type is opaque.
In effect, the clients who call create_struct() can't access the private members of the samplestruct object.