NVIDIA Interview Question for Software Engineer Interns


Team: Driver Development
Country: United States
Interview Type: Phone Interview




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

unsigned char * Testing()
    {
        int a=1;
        return((unsigned char*)(&a) );
    }

- GuruNotCoding February 12, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

x86 is little endian, while sparc is big endian. So question really is asking to find if underlying system is little endian or big endian.

union{
	short s;
	char b[2];
	}x;
	x.s = 1; /* 0(MSB)1(LSB) */
	if( b[0] == 1 ) /* lower address has LSB */
		return x86
	else
		return sparc

- confused_banda February 16, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

public void main(){

}

- test November 27, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static int lengthx()

- test November 27, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

bool endianness()
{
int num;
char *ptr;
num=1;
ptr=(char*) #
return (*ptr); //returns the byte at lower address
}

/*returns true if the machine is little endian,i,e X86 or false if the machine is big endian,i,e sparc */

- Anonymous March 23, 2016 | 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