how can i get the string which is having two spaces at the
end.suppose the string is "Hello World ".Now at the end i
have two spaces.i need to print with that spaces .



how can i get the string which is having two spaces at the end.suppose the string is "Hello W..

Answer / banavathvishnu

char *str = "Hello World ";
puts(str);

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Interview Questions

Program to trim a given character from a string.

5 Answers   NetApp,


What is far pointer in c?

0 Answers  


for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float

1 Answers  


Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?

1 Answers  


What are variables and it what way is it different from constants?

0 Answers  






what does " calloc" do?

7 Answers   Cadence, Logos,


What is typeof in c?

0 Answers  


if a person is buying coconuts of Rs10,and then sell that coconuts of Rs9,with the loss of one rupee.After that the person became a millaniore.how?

9 Answers   Wipro,


What is the function of this pointer?

0 Answers   Agilent, ZS Associates,


What is difference between main and void main?

0 Answers  


How main function is called in c?

0 Answers  


How to add two numbers with using function?

4 Answers  


Categories