0 0 votes What will be output of the following C code void main( ) { static int main; int a; a = value(main); printf(“%d”, a); } int value(int val2) { val2++; return val2; } Programming in C + – Rohan Mundhey 550 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes we cannot use main as a variable name . so compiler gives waring message. santhoshdevulapally answered Nov 6, 2016 santhoshdevulapally comment Share Follow See 1 comment 1 1 comment reply ManojK commented Nov 6, 2016 reply Follow flag why warning ? main is user defined rt? 0 0 replyShare Please log in or register to add a comment.