Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
case 3
--i;
Output of i after executing the program

Answer Posted / vinay

the value of i if we forget the mistake u done

it is i=2;

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a example of a variable?

553


How can you tell whether two strings are the same?

833


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

813


Where static variables are stored in memory in c?

523


Why does everyone say not to use scanf? What should I use instead?

680






What is volatile keyword in c?

583


What is getch c?

853


diff between exptected result and requirement?

1594


how to capitalise first letter of each word in a given string?

1434


What is pointer and structure in c?

574


Why is c called a structured programming language?

677


What are volatile variables in c?

520


What is non linear data structure in c?

577


Here is a good puzzle: how do you write a program which produces its own source code as output?

599


Is main a keyword in c?

632