Gotaninterviewcall - gotaninterviewcall.com - GotAnInterviewCall

Latest News:

what are the basics of Java Technology 27 Aug 2013 | 05:28 pm

Java technology is a simple, secure, robust, complete object oriented and platform independent high level programming language. It is also portable, high performance, multithreaded and networksavy tha...

Amazon Interview experience Chennai 27 Aug 2013 | 05:28 am

First I had a paper pen coding round. The questions were: 1) There are two sorted linked lists. Write a code to return the merged linked list which is also sorted. No additional nodes must be used. 2)...

Convert Decimal to Hexa Decimal 26 Aug 2013 | 05:27 pm

How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same First Solution: int answer=0; While(number){ int x = number mod 16; answer = answer*10 + x; number = num...

Second largest element in an array with minimum no of comparisons and give the minimum no of comparisons 26 Aug 2013 | 05:30 am

This has been asked in Amazon Interview There are two solution possible. Brute Force Approach:- 1. Take Two Variables. Assign First Highest and second highest as one of the first two elements. 2. Iter...

Array Size 25 Aug 2013 | 05:36 pm

This has been asked in amazon interview question. Given an array of size n+1 which contains all the numbers from 1 to n. Find the number which is repeated in O(n) time. How do you proceed with the sam...

Problem 8 25 Aug 2013 | 05:33 am

#define swap(a,b) a=a+b;b=a-b;a=a-b; void main() { int x=5, y=10; swap (x,y); printf(“%d %dn”,x,y); swap2(x,y); printf(“%d %dn”,x,y); } int swap2(int a, int b) { int temp; temp=a; b=a; a=temp; return ...

Problem 9 24 Aug 2013 | 05:27 pm

main() { int x=20,y=35; x=y++ + x++; y= ++y + ++x; printf(“%d%dn”,x,y); } Solution: 5794

What will print out? 24 Aug 2013 | 05:28 am

main() { char *p1=“name”; char *p2; p2=(char*)malloc(20); memset (p2, 0, 20); while(*p2++ = *p1++); printf(“%sn”,p2); } Solution: empty string.

In C, what is the difference between a static variable and global variable? 23 Aug 2013 | 05:32 pm

A static variable declared outside of any function is accessible only to all the functions defined in the same file (as the static variable). However, a global variable can be accessed by any function...

What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator. 23 Aug 2013 | 05:33 am

An internal iterator is implemented with member functions of the class that has items to step through. .An external iterator is implemented as a separate class that can be “attach” to the object that ...

Recently parsed news:

Recent searches: