Constants and Variables — Study Resources & PYQs
Declaration and use of constants and variables in C.
- Estimated study time: 30 minutes
Study resources
- C Basics section - GeeksforGeeks tutorial (Article) — Use the Basics and Variables sections of this tutorial for constants and variables, each with its own page and a runnable example.
- C Operators and Precedence - Programiz (Article) — Covers constants and variables as part of the introductory C syntax pages.
- Java Tokens, Constants, Variables (Article) — Well-structured learning material for understanding Java Tokens, Constants, Variables with examples and practical explanations.
- Data Types in C (GeeksforGeeks) (Article) — Covers all C data types (int, float, char, double, etc.), their sizes/ranges, and how constants and variables are declared and initialized.
- NPTEL — Programming and Data Structures, IIT Madras (Article) — Current NPTEL course covering C programming constructs, arrays, pointers, functions, recursion, searching and sorting.
Constants and Variables previous year questions
- a) Discuss structured programming? Write an algorithm and draw a flowchart to find the largest and smallest of three numbers. (12) b) How do you define constan…
- Explain different data types in Java. Give example.
- Write a java program that illustrates how 'this' keyword can be used to resolve the ambiguity between formal parameters and instance variables.
Taught in these subjects
- COMPUTER PROGRAMMING — BCST11 · Government College of Engineering and Technology, Jammu
- Computer Programming — BCST11 · Government College of Engineering and Technology, Jammu
- Computer Programming — CST3101 · Government College of Engineering and Technology, Jammu
- Fundamentals of Programming Using C — CST3201 · Government College of Engineering and Technology, Jammu
- Java Programming — CST3403 · Government College of Engineering and Technology, Jammu