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 .

Answer Posted / banavathvishnu

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

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is structure of c program?

609


Discuss the function of conditional operator, size of operator and comma operator with examples.

682


How does sizeof know array size?

634


How can I open files mentioned on the command line, and parse option flags?

597


Explain what is the use of a semicolon (;) at the end of every program statement?

740






int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1128


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3846


c program for searching a student details among 10 student details

1659


Explain what are the __date__ and __time__ preprocessor commands?

596


what is the difference between 123 and 0123 in c?

728


Do you know what are bitwise shift operators in c programming?

589


write an algorithm to display a square matrix.

2228


What are data types in c language?

590


How can you read a directory in a C program?

656


What is a #include preprocessor?

622