How can I remove the leading spaces from a string?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }

2 Answers   Vector, Vector India,


Write a program in c to print 1 121 12321 1234321 123454321

11 Answers   ANR, College School Exams Tests, Mu Sigma, Wipro,


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.

2 Answers  


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

0 Answers   TCS,


What is the difference between array and pointer?

0 Answers  






What are the rules for the identifier?

0 Answers  


How can you avoid including a header more than once?

0 Answers  


Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.

1 Answers  


When should you use a type cast?

0 Answers  


what are # pragma staments?

0 Answers  


What is 2c dna?

0 Answers  


what is the diference between pointer to the function and function to the pointer?

2 Answers   Infosys,


Categories