-
-
-
-
-
Find inode Number
Create a program to find out the inode number of any desired file
-
Find Smallest of 3 Numbers
Write a shell script to find the smallest of three numbers that are read from the keyboard.
-
-
Give examples of how memory leaks can occur with c programs?
Answer posted by sonal on 2005-06-08 08:15:23: a memory leak occurs when mem is allocated but never freed . leakes can b caused by using malloc() without using any free(). but leaks can also be caused if a pointer to dynamically allocated memory is delleted overwritten , it can be caused when allocated mem is overwritten accidentally
-
-
-
-
-
-
-
-
-
-
-
-
Identify the Mistake
What is wrong with the code
a=0 b=0 IF [$a -eq $b] then echo a is equal to b else echo " a is not equal to b" fi
a) Variables should be assigned on individual rows not next next
b) in if statement there should be space after "[" and before "]"
c) first echo statement should be enclosed within ""
d) IF and FI should be in lower case
Unix Programming Interview Questions
Ans