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 nested loop?

0 Answers  


What are the three constants used in c?

0 Answers  


Can we use any name in place of argv and argc as command line arguments?

0 Answers  


what is difference between null and nul in c language

2 Answers  


main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā€œ%dā€,x); }

8 Answers   Vector,






which types of data structure will i use to convert infix to post fix???

5 Answers   IIT,


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   HCL, iGate,


write a program in c language to print your bio-data on the screen by using functions.

6 Answers   College School Exams Tests, IBM,


Is there a way to jump out of a function or functions?

0 Answers  


write a program to remove occurrences the word from entered text?

1 Answers  


How can I manipulate strings of multibyte characters?

0 Answers  


int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }

3 Answers   HCL,


Categories