0 votes 0 votes saumya mishra asked May 15, 2018 saumya mishra 369 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Here In printf, we used % operator. The sign bit of % operator depends on numerator so that output is 1,1,-1,-1. Hira Thakur answered May 15, 2018 Hira Thakur comment Share Follow See 1 comment See all 1 1 comment reply Ananya Jaiswal 1 commented May 16, 2018 reply Follow Share i have this silly doubt. when we calculate -4%3. this should be equal to 2 according to this link https://math.stackexchange.com/questions/519845/modulo-of-a-negative-number why the answer is -1 for 3rd printf statement ? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Ans. would be 1,1,-1,-1 as the division takes place as following: Girjesh Chouhan answered May 16, 2018 Girjesh Chouhan comment Share Follow See all 0 reply Please log in or register to add a comment.