| Other C Interview Questions |
|| Asked @
|I didn't count the ducks that I saw in line,
but I do remember that one duck was in front of two ducks,
another duck behind two ducks. How many ducks did I see?
|You are given a string which contains some special
characters. You also have set of special characters. You are
given other string (call it as pattern string). Your job is
to write a program to replace each special characters in
given string by pattern string. You are not allowed to
create new resulting string. You need to allocate some new
memory to given existing string but constraint is you can
only allocate memory one time. Allocate memory exactly what
you need not more not less.
|What is output of the following program ?
i = 1;
printf("%d %d %d\n",i,i++,i++);
|write C code to reverse a string such that if i/p is "abc
defg hij klmno pqrs tuv wxyz"
and the o/p should be "cba gfed jih onmlk srqp vut zyxw"
|what is the difference between while and do while?
copy n LSBs from y to x starting LSB at 'p'th position.
|How to implement variable argument functions ?
|write a string copy function routine?
|can please someone teach me how to create this program using
while statement.. this is the output should look like
-thanks.. :) need it asap...
|In scanf h is used for
|plz answer.. a program that takes a string e.g. "345" and
returns integer 345
|Example of friendly function in c++
|For more C Interview Questions Click Here |