Program Console Vignaankosh.com
Execution Panel
Console is empty.
Read and print structure members (user input) is an interactive C dry run visualizer from the Structures programs section. Study the source code, then use the execution controls to follow each step, variable update, highlighted line, and console output.
This page provides a browser-based dry run with source-code highlighting, auto-scroll, voice narration controls, and execution output for learning the program step by step.
#include <stdio.h>
struct Employee {
int id;
char name[100];
float salary;
};
int main() {
struct Employee emp;
printf("Enter Employee ID: ");
scanf("%d", &emp.id);
printf("Enter Name: ");
scanf(" %[^\n]", emp.name); // Reads string with spaces
printf("Enter Salary: ");
scanf("%f", &emp.salary);
printf("\n--- Employee Details ---\n");
printf("ID: %d\n", emp.id);
printf("Name: %s\n", emp.name);
printf("Salary: Rs.%.2f\n", emp.salary);
return 0;
}