Login
Remember
Register
Q&A
Questions
Ask a Question
Is it possible to use curly brackets ({}) to enclose a single line code in C program?
Home
>
Technology
>
Is it possible to use curly brackets ({}) to enclose a single line code in C program?
+1
vote
asked
Nov 8, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
Is it possible to use curly brackets ({}) to enclose a single line code in C program?
interview-question-answer
technology-questions-answers
Facebook
Twitter
LinkedIn
Email
Add Answer
1
Answer
0
votes
answered
Nov 8, 2020
by
JackTerrance
(
1.7m
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.
Related questions
+1
vote
1
answer
Which operator is used to continue the definition of macro in the next line in C-Programming?
asked
Nov 9, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
0
votes
1
answer
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.7m
points)
c
cgcc
0
votes
1
answer
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affects when debugging?
asked
Nov 8, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
+1
vote
1
answer
What is the correct code to have the following output in C using nested for loop?
asked
Nov 8, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
+1
vote
1
answer
Can a program be compiled without main() function in C-Programming?
asked
Nov 9, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
...