0% found this document useful (0 votes)
17 views1 page

Question 1

The document presents a problem statement requiring the creation of a function that moves all '#' characters in a given string to the front. The function, named 'moveHash', accepts a string and its length as parameters and returns the modified string. An example input and output are provided to illustrate the expected functionality.

Uploaded by

Soumita Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

Question 1

The document presents a problem statement requiring the creation of a function that moves all '#' characters in a given string to the front. The function, named 'moveHash', accepts a string and its length as parameters and returns the modified string. An example input and output are provided to illustrate the expected functionality.

Uploaded by

Soumita Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Question 1

Problem Statement –

You have write a function that accepts, a string which length is “len”, the string has
some “#”, in it you have to move all the hashes to the front of the string and return
the whole string back and print it.

char* moveHash(char str[],int n);

example :-

Sample Test Case

Input:

Move#Hash#to#Front

Output:

###MoveHashtoFront

You might also like