1 votes 1 votes 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 asked Jan 29, 2018 • edited Jan 29, 2018 by Akshay Nair Akshay Nair 446 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply sumit goyal 1 commented Jan 29, 2018 reply Follow Share this question already discussed and i think there conclusion is options are wrong 1 votes 1 votes sumit goyal 1 commented Jan 29, 2018 reply Follow Share output = 1 -1 1 -1 2 0 votes 0 votes $ruthi commented Jan 31, 2018 reply Follow Share but option d is given as wrong 0 votes 0 votes sumit goyal 1 commented Jan 31, 2018 reply Follow Share yes its wrong read 1st comment 0 votes 0 votes Please log in or register to add a comment.