Rambus interview question

programming test: write a function to remove c or c++ style comments from input character string without using dynamic memory allocation volatile, const, various pointer definitions, macro to return greater number between two, functions to set, clear and toggle bits, what would be output kind of questions