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

What is a memory leak? How to avoid it?

1 Answers  


Is javascript based on c?

0 Answers  


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

0 Answers  


int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

10 Answers   Wipro,


How can I dynamically allocate arrays?

0 Answers  


Is c is a procedural language?

0 Answers  


Explain what is a stream?

0 Answers  


how to compare two strings without using strcmp() function??

1 Answers  


Describe advantages and disadvantages of the various stock sorting algorithms

1 Answers   Microsoft,


find largest element in array w/o using sorting techniques.

3 Answers   Zycus Infotech,


What is a class c rental property?

0 Answers  


no consistent academics. how to answer the question

0 Answers  


Categories