[ create a new paste ] login | about

Link: http://codepad.org/ZmQ0IyDG    [ raw code | output | fork ]

C++, pasted on Dec 18:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<stdio.h>

int main(int argc,char *argv[])
{
int a =1;
switch(a)
{
case 1: int x;
        x=10;
        printf(" x is %d",x);
break;

default :
break;
}   
return 0;

}


Output:
1
 x is 10


Create a new paste based on this one


Comments: