Sun micro
system placement interview question on c
(1) Give the output of the following program
main() {
char *s;
s="hot java";
strcpy(s,"solarrs java")
}
(2) Give the output of the following program
main() {
printf("hot java");
fork()
exit(0);
}
(i). When redirected to a screen what will be printed. (ii).
When redirected to file what will be printed.
(3). Give the
No comments:
Post a Comment