C Basics

1.How variables are defined in C?
Variable_name
Datatype Variable_name
Variable_name Datatype
Datatype
2.#include int g; int main () { int a, b; a = 10; b = 20; g = a + b; printf ("value of a = %d, b = %d and g = %d\n", a, b, g); return 0; }
A=10,b=20,g=0
A=0,b=0,g=0
A=10,b=20,g=30
None of the Above
3.#include int g = 20; int main () { int g = 10; printf ("value of g = %d\n", g); return 0; }
G=0
G=20
G=10
None of the above
{"name":"C Basics", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"1.How variables are defined in C?, 2.#include int g; int main () { int a, b; a = 10; b = 20; g = a + b; printf (\"value of a = %d, b = %d and g = %d\\n\", a, b, g); return 0; }, 3.#include int g = 20; int main () { int g = 10; printf (\"value of g = %d\\n\", g); return 0; }","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker