Interview Question Database For Software Developers
|
|
1411 :-) | | String Concatenation | | What will be printed as the result of the operation
below:
main() {
char *p1;
char *p2;
p1=(char *)malloc(25);
... | | Submitted: 20070226 |
|
1414 :-) | | Static Variables | | The following variable is available in file1.c, who
can access it?
static int average;
... | | Submitted: 20070226 |
|
1437 :-) | | Constants | | WHat will be the result of the following code?
#define TRUE 0 // some code
while (TRUE) {
// some code
}
... | | Submitted: 20070226 |
|
1430 :-) | | Function Calls | | What will be printed as the resultof the operation
below:
int x;
int modifyvalue() {
return(x+=10);
}
int ch... | | Submitted: 20070226 |
|
1438 :-) | | Incremental Operatiors | | What will be printed as the result of the operation
below:
main() {
int x=10, y=15;
x = x++;
y = ++y;
... | | Submitted: 20070226 |
|
1403 :-) | | Conditional Statements | | What will be printed as the result of the operation
below:
main() {
int a=0;
if (a==0)
printf("Cisco System... | | Submitted: 20070226 |
|
1426 :-) | | Shift Operations | | What will the following piece of code do?
int f(unsigned int x) {
int i;
for (i=0; x!=0; x1) {
if (x 0x1)
i++;
}
return i;
}
... | | Submitted: 20070226 |
|
1428 :-) | | Conditional Statements | | What will happen in these three cases?
if (a=0) {
//somecode
}
if (a==0) {
//do something
}
if (a===0) {
//do something
}
... | | Submitted: 20070226 |
|
1446 :-) | | Variable Types | | What are the types of variables x, y, y and u
defined in the following code?
#define Atype int*
typedef int *p;
p x, z;
Atype y, u;
... | | Submitted: 20070226 |
|
Copyright © 2009 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|