Given a line of text, implement a logic to remove the spaces…
Given a line of text, implement a logic to remove the spaces, and print it. Concentrate on your array logic, variables, and printf() statements. Assume the array is already declared and defined, and the size of input string is unknown. Sample output: For example, if array[] = “Hello, This is an exam. And you’re not allowed to plagiarize”; The string after removing spaces: Hello,Thisisanexam.Andyou’renotallowedtoplagiarize