Manhattan associates Interview Question for Software Engineer / Developers


Country: India
Interview Type: In-Person




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

Stored in bss section of memory

- Abhishek February 06, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static member functions can be accessed without creating instance or object of the class.
For ex:
class xyz
{
private:
static int a;
public:
static int fun(void)
{
a=5;
return a;
}
};

int main()
{
cout<<"value of static member a:"<<xyz::fun();
return 0;
}

The static members and member functions do not take part in memory allocated to object or instance of a class. Static variables are kind of global variables having one copy shared among all objects of the class.

Static members or member functions stored in BSS memory where as other non static member functions are stored in heap or stack.

- Madhusudhan Talakokkula February 24, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

good one.. Keep it going

- amit October 24, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

static member functions can be accessed without creating instance or object of the class.
For ex:

class xyz
{
private:
static int a;
public:
static int fun(void)
{
a=5;
return a;
}
};

int main()
{
cout<<"value of static member a:"<<xyz::fun();
return 0;
}

The static members and member functions do not take part in memory allocated to object or instance of a class. Static variables are kind of global variables having one copy shared among all objects of the class.

Static members or member functions stored in BSS memory where as other non static member functions are stored in heap or stack.

- Madhusudhan Talakokkula February 24, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static member functions can be accessed without creating instance or object of the class.
For ex:

class xyz
{
private:
static int a;
public:
static int fun(void)
{
a=5;
return a;
}
};

int main()
{
cout<<"value of static member a:"<<xyz::fun();
return 0;
}

The static members and member functions do not take part in memory allocated to object or instance of a class. Static variables are kind of global variables having one copy shared among all objects of the class.

Static members or member functions stored in BSS memory where as other non static member functions are stored in heap or stack.

- Madhusudhan Talakokkula February 24, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static member functions can be accessed without creating instance or object of the class.
For ex:

class xyz
{
private:
static int a;
public:
static int fun(void)
{
a=5;
return a;
}
};

int main()
{
cout<<"value of static member a:"<<xyz::fun();
return 0;
}

The static members and member functions do not take part in memory allocated to object or instance of a class. Static variables are kind of global variables having one copy shared among all objects of the class.

Static members or member functions stored in BSS memory where as other non static member functions are stored in heap or stack.

- Madhusudhan Talakokkula February 24, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

static member functions can be accessed without creating instance or object of the class.
For ex:

class xyz
{
private:
static int a;
public:
static int fun(void)
{
a=5;
return a;
}
};

int main()
{
cout<<"value of static member a:"<<xyz::fun();
return 0;
}

The static members and member functions do not take part in memory allocated to object or instance of a class. Static variables are kind of global variables having one copy shared among all objects of the class.

Static members or member functions stored in BSS memory where as other non static member functions are stored in heap or stack.

- Madhusudhan Talakokkula February 24, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Both static member functions and non-static member functions will be stored in Code Segment of the program. When the program is loaded into memory bss does not exist at all. Only the uninitialized global variables will reside in program bss. Once the process is loaded to memory all bss variables will be initialized to zero and gets loaded to memory. so the answer for this question is any member function will be stored on Code Segment of the process and this code is shared for all the objects

- Ram May 25, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Both static member functions and non-static member functions will be stored in Code Segment of the program. When the program is loaded into memory bss does not exist at all. Only the uninitialized global variables will reside in program bss. Once the process is loaded to memory all bss variables will be initialized to zero and gets loaded to memory. so the answer for this question is any member function will be stored on Code Segment of the process and this code is shared for all the objects

- Ram Polisetty May 25, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

static has different meanings depending on what you are talking about - variables, classes, functions, etc...

In regards to functions, the static keyword does not affect storage at all but is rather simply a guide to the linker stating that only other functions in the source file where the static function is defined may call it. Declaring a function static simply makes the linker enforce this rule and error will result if you try to circumvent the rule. So, that said, the code for the function exists in the text/code portion along with all the other code.

- Ajay Yadav Aricent June 14, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

String=hello world;
find first and last index of L using a single function....

- sann September 17, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Static methods are the methods that gives you a global point of access for a particular interface(behavior). Both the static and non-satic methods are stored in Code/Text section of the object code which is shared by the instances of program


Pls write if i am wrong!!..

- techieDeep January 29, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

static & global variables are stored in the Alterable segment
only the scope of the variable varies between static and global variable
static variables has scope limited to the file and global variable can be accessed out side the file as well

- manjunath February 04, 2014 | Flag


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