Interview Question Database For Software Developers
|
|
1491 :-) | | "union" Data Type | | What's the output of the following program? And
why?
#include
main() {
typedef union {
int a;
char b[10];
float c;
}
Union;
Union x... | | Submitted: 20070226 |
|
1511 :-) | | Printing Permutaions of a String | | Write out a function that prints out all the
permutations of a string.
For example, abc would give you abc, acb, bac, bca,
cab, cba.... | | Submitted: 20070226 |
|
1443 :-) | | Using Pointers | | What print out will the folloging code produce?
main() {
char *p1=“name”;
char *p2;
p2=(char*)malloc(20);
... | | Submitted: 20070226 |
|
1431 :-) | | Incremental Operatos | | What will be printed as the result of the operation
below:
main()
{
int x=20,y=35;
x=y++ + x++;
y= +... | | Submitted: 20070226 |
|
1440 :-) | | Shift Operators | | What will be printed as the result of the operation
below:
main() {
int x=5;
printf("%d,%d,%d\n",x,x
}
... | | Submitted: 20070226 |
|
1451 :-) | | Function Calls | | What will be printed as the result of the operation
below:
#define swap(a,b) a=a+b;b=a-b;a=a-b;
void main() {
int x=5, y=10;
... | | Submitted: 20070226 |
|
1450 :-) | | String Pointers | | What will be printed as the result of the operation
below:
main() {
char *ptr = " Cisco Systems";
*ptr++; printf("%s\n",ptr);
... | | Submitted: 20070226 |
|
1435 :-) | | Character Array | | What will be printed as the result of the operation
below:
main() {
char s1[]="Cisco";
char s2[]="systems";
pri... | | 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.
|
|
|