Placement Paper (Technical-C & Unix)
C & UNIX
1. What does chmod 654 stand for.
2. Which of
following is used for back-up files?
(a) compress (b) Tar (c) make (d) all the
above Ans : b
what does find command do ? Ans : search a file
what does " calloc" do?
Ans : A memory allocation and initializing
5. what does
Ans : come out of executing programme.
what is the value of 'i'?
Ans : 1
printf("%old %old %old %old ",i,
Using pointer, changing A to B and B to A is Swapping the function using
two address and one temporary variable. a,b are address, t is temporary
variable. How function look like?
Ans : swap(int *, int *, int )
In 'o' how are the arguments passed?
ans : by value.
Find the prototype of sine function.
Ans : extern double sin(double)
Scope of a global variable which is declared as static?
ans : File
ans : 6
13. what is the o/p
printf(" Hello \o is the world
Ans : Hello is the world.
Clarifying the concept addresses used over array ; ie changing the
address of a base element produces what error?
child process -- fork
child shell -- sh
Answer are lex 7 yacc & man read these things in UNIX
What is int *p(char (*s))
Ans : p is a function which is returning a
pointer to integer which takes
arguments as pointer to array of characters