Home Subjects C Programming

C Programming

C language from basics to advanced placement prep

291 Q 10 Topics Take Mock Test
Advertisement
Difficulty: All Easy Medium Hard 291–291 of 291
Topics in C Programming
Q.291 Easy Basics & Syntax
Which of the following is the correct syntax to declare a variable in C?
A int x;
B int x
C int: x;
D declare int x;
Correct Answer:  A. int x;
EXPLANATION

In C, variable declaration requires a semicolon at the end. The syntax is 'data_type variable_name;'

Test
IGET
IGET AI
Online · Exam prep assistant
Hi! 👋 I'm your iget AI assistant.

Ask me anything about exam prep, MCQ solutions, study tips, or strategies! 🎯
UPSC strategy SSC CGL syllabus Improve aptitude NEET Biology tips