output format _____extra space

Suppose any programming wants me to give output and in the form of integers separated by space. and then I have used printf("%d(space) ",var) .it has been shown that after d in printf there is a space so obviously it will print space after every integer, at the the time of last integer it will also print that space which is not required.CAN THIS BE ALSO A REASON FOR SHOWING WRONG ANS ON SUBMISSION OF THE PROBLEM.

No. This can’t be a reason for showing wrong answer on submission of the problem.
For further clarifications, you can check solutions of other users in the practice problems.

Thank you.

No, i dont think that adding a space at the end would give wrong ans if the line terminates after the last space. There might be some other problem with your code.