Write a function that accepts a sentence as a parameter, and
returns the same with each of its words reversed. The
returned sentence should have 1 blank space between each
pair of words.
Demonstrate the usage of this function from a main program.
Parameter: “jack and jill went up a hill” Return Value:
“kcaj dna llij tnew pu a llih”
1)what is the error in the following stmt where str is a
char array and the stmt is supposed to traverse through the
whole character string str?
a)There is no error.
b)There shud be no ; after the stmt.
c)The cond shud be str[i]!='\0'
d)The cond shud be str[i]!=NULL
e)i shud be initialized to 1
Blade logic interview question.
1st round is a written tests with 15 multiple questions
from c and c++. All are simple basic question.
Like int main ()
Return printf(“%c”, i);
2nd and 3rd round is technical interview.
The position for which I was interview was core UNIX and c.
Yes it is for system programming.
The company has product name blade server. For their server
they are creating their own command for their purpose.
Example cd command.
We can implement it in a c program by using the chdir()
So the question asks related to PID, fork, pipe, shared
Write a program in c which will act as cp command.