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
Explain the term printf() and scanf() used in c language?
What is a header file?
Write a program to swap two numbers without using the third variable?
What are the three constants used in c?
What is a void pointer in c?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is double pointer?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Is sizeof a keyword in c?
What are categories used for in c?
What are the types of assignment statements?
What is static function in c?
What are run-time errors?