1 1 vote What is the output of the following program? void main() { printf("%d",5%2); printf("%d",-5%2); printf("%d",5%-2); printf("%d",-5%-2); printf("%d",2%5); } A) 1,-1 -1 1 0 B)1 -1 1 -1 0 c)1 -1 -1 -1 0 d)1 -1 -1 1 2 Programming in C programming programming-in-c output + – Akshay Nair 856 views answer comment Share Follow Print See all 4 Comments 4 4 Comments reply sumit goyal 1 commented Jan 29, 2018 reply Follow flag this question already discussed and i think there conclusion is options are wrong 1 1 replyShare sumit goyal 1 commented Jan 29, 2018 reply Follow flag output = 1 -1 1 -1 2 0 0 replyShare $ruthi commented Jan 31, 2018 reply Follow flag but option d is given as wrong 0 0 replyShare sumit goyal 1 commented Jan 31, 2018 reply Follow flag yes its wrong read 1st comment 0 0 replyShare Please log in or register to add a comment.