online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> #include <conio.h> int main() { typedef struct student { int rollno; char name[20]; } stud; stud s1, s2, *p1, *p2; p1 = &s1; p2 = &s2; printf("First Method \nenter the roll no and name\n"); scanf("%d%s", &(*p2).rollno, (*p2).name); printf("rollno-%d name-%s", (*p2).rollno, (*p2).name); printf("\n\n"); printf("Second Method \nenter the roll no and name\n"); scanf("%d%s", &(p1->rollno), p1->name); printf("rollno-%d name-%s", p1->rollno, p1->name); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue