Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Is it possible to use curly brackets ({}) to enclose a single line code in C program?
asked
Nov 8, 2020
in
Technology
by
JackTerrance
(
1.8m
points)
Is it possible to use curly brackets ({}) to enclose a single line code in C program?
interview-question-answer
technology-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 8, 2020
by
JackTerrance
(
1.8m
points)
Yes, it works without any error. Some programmers like to use this to organize the code. But the main purpose of curly brackets is to group several lines of codes.
Please
log in
or
register
to add a comment.
Related questions
0
votes
Q: Is it possible to subclass a C struct in C++ and use pointers to the struct in C code?
asked
Mar 13
in
Education
by
JackTerrance
(
1.8m
points)
c
cgcc
0
votes
Q: _____ is not part of structure of functiona) equal signb) function namec) curly brackets
asked
Dec 20, 2021
in
Education
by
JackTerrance
(
1.8m
points)
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write· a program to read one of the hex digits A-I’, and <.lisplay it on the next line in decimal. Sample execution: E~TER A HEX ~:GIT: C IN DECIMAL IT rs 12
asked
Dec 6, 2021
in
Education
by
JackTerrance
(
1.8m
points)
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write· a program to read one of the hex digits A-I’, and <.lisplay it on the next line in decimal. Sample execution: E~TER A HEX ~:GIT: C IN DECIMAL IT rs 12
asked
Dec 5, 2021
in
Education
by
JackTerrance
(
1.8m
points)
computer-science-interview-questions
computer-science-questions
0
votes
Q: Write· a program to read one of the hex digits A-I’, and <.lisplay it on the next line in decimal. Sample execution: E~TER A HEX ~:GIT: C IN DECIMAL IT rs 12
asked
Nov 26, 2021
in
Education
by
JackTerrance
(
1.8m
points)
computer-science-interview-questions
computer-science-questions
...