I am DeePu sotware engineer working with EMC
corporation ,recently I had attended mcafee interview .
Their questions were at heights of stupidity , I don't know
what they want , I am a developer with 4 year
experienced .I am listing the questions asked
1:What is the flag in g++ to avoid structure padding
2:In wht order parameters are passed to stack
3:How you will edit code segment of an exe
Answer / sandhya.v
2:
passing parameters on the stack is slightly less efficient
than passing those parameters in registers, the register
set is very limited and you can only pass a few value or
reference parameters through registers. The stack, on the
other hand, allows you to pass a large amount of parameter
data without any difficulty. This is the principal reason
that most programs pass their parameters on the stack.
3:
For this qustion ,there is a proper answer given in this
link
http://www.arl.wustl.edu/~lockwood/class/cse306/mp/mp0/mp0.h
tml
| Is This Answer Correct ? | 1 Yes | 1 No |
What is difference between abstraction and encapsulation?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort
What are virtual classes?
what is virtual function in c++
What is multidimensional array?
What is variable example?
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
What is this interview room ? Is it a class or an object.
write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language
What is a unary operator?
all about pointers
how to get the oracle certification? send me the answer