0% found this document useful (0 votes)
21 views1 page

C Programming Questions

The document contains a set of C programming questions, including valid variable names, the purpose of 'return 0;' in the main function, a request for a program to check even or odd numbers, the operator for accessing pointer values, and the difference between '++i' and 'i++'. These questions are aimed at assessing knowledge of C programming concepts and syntax.

Uploaded by

Soumya Mahbub
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

C Programming Questions

The document contains a set of C programming questions, including valid variable names, the purpose of 'return 0;' in the main function, a request for a program to check even or odd numbers, the operator for accessing pointer values, and the difference between '++i' and 'i++'. These questions are aimed at assessing knowledge of C programming concepts and syntax.

Uploaded by

Soumya Mahbub
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

C Programming Questions

Q1: Which of the following is a valid variable name in C?

- 1variable

- _varName

- int

- float&value

Q2: What is the purpose of the 'return 0;' statement in the main function?

Q3: Write a C program to check if a number is even or odd using if-else.

Q4: Which operator is used to access the value at the address stored in a pointer?

-&

-*

- ->

-.

Q5: Explain the difference between '++i' and 'i++' in C.

You might also like