in Technology by

Is it possible to use curly brackets ({}) to enclose a single line code in C program?

1 Answer

0 votes
by
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

0 votes
    _____ is not part of structure of function a) equal sign b) function name c) curly brackets d) arguments Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Is there a side effect in doing this: C code: struct foo { int k; }; int ret_foo(const struct ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 13, 2022 in Education by JackTerrance
0 votes
    y = " \{ Hi\} {0} " print y.format(43) it's showing an error: Key Error: Hi\\ I want to print the output from the above syntax: {Hi} 43 Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    I have a list in Python e.g. letters = ["t", "h", "e"] I want to print the array in a single line ... It must be in a single row. Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    Write· a program to read one of the hex digits A-I’, and...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
    To extract a sublist, we use _________ brackets. (a) Flower (b) Square (c) Double (d) Single This question ... and Out of R Programming Select the correct answer from above options...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I am developing a Windows 8 metro application that uses semantic zoom in the following way: The zoomed in ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 13, 2022 in Education by JackTerrance
0 votes
    Why is it not possible to measure the single electrode potential ? Select the correct answer from above options...
asked Jan 5, 2022 in Education by JackTerrance
0 votes
    Is it possible to change the generated code directly in Talend?...
asked Mar 16, 2021 in Technology by JackTerrance
0 votes
    Q.32 :-What will the SWAP macro in the following program be expanded to on preprocessing? will the code compile? ... y); return 0; Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    Is It possible to inspect the source code of R? (a) Yes (b) No (c) Can't say (d) Some times ... and Getting Started of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    Is it possible to have no four queens in a straight line as the part of one of the solution to the eight queen puzzle. a) True b) False...
asked Dec 28, 2022 in Technology by JackTerrance
0 votes
    The Sitecore package wizard can be used to build a package containing data and files for the local Sitecore ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 16, 2022 in Education by JackTerrance
...