25 votes 25 votes Consider the following C program. #include<stdio.h> int main () { int m=10; int n, n1; n=++m; n1=m++; n--; --n1; n-=n1; printf(“%d”, n); return 0; } The output of the program is ______ Programming in C gatecse-2017-set2 programming-in-c numerical-answers easy + – Madhav asked Feb 14, 2017 • edited Dec 26, 2023 by Hira Thakur Madhav 12.0k views answer comment Share Follow See 1 comment See all 1 1 comment reply Arrick commented Feb 19, 2017 reply Follow Share #include<stdio.h> int main () { int m=10; \\m=10 int n, n1; n=++m; \\n=11,m=11 n1=m++; \\n1=11,m=12 n--; \\n=10 --n1; \\n1=10 n-=n1; \\n=10-10=0 printf(“%d”, n); \\0 return 0; } output is 0. 6 votes 6 votes Please log in or register to add a comment.
4 votes 4 votes the answer is zero Sheetal Kamble answered Feb 14, 2017 Sheetal Kamble comment Share Follow See all 2 Comments See all 2 2 Comments reply antarachoudhury commented Sep 8, 2018 i edited by antarachoudhury Sep 8, 2018 reply Follow Share Zero 0 votes 0 votes Vivek Raj commented Jan 14, 2021 reply Follow Share nice ra! 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes print 0 then answer will 0 araj52270 answered Sep 12, 2018 araj52270 comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 0 is the right answer swettt871 answered Jan 28, 2021 swettt871 comment Share Follow See all 0 reply Please log in or register to add a comment.