adspace
Answer Posted / Ravi Ranjan
To remove leading spaces from a string, you can use the sscanf function in C. Here's an example:nnchar str[100]; // your stringnsscanf(str, "%[^t ]"%, str); // removes leading whitespaces
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
write a progrmm in c language take user interface generate table using for loop?
develop algorithms to add polynomials (i) in one variable
What is pointers in c with example?
What are pointers? What are different types of pointers?
Do you know the difference between malloc() and calloc() function?
What is pointer to pointer in c with example?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What is the difference between union and anonymous union?
What are compound statements?
What is variable initialization and why is it important?
write a program to find out prime number using sieve case?
How can I implement sets or arrays of bits?
Differentiate between null and void pointers.
what is ur strangth & weekness