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



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

Answer / Dinesh Kumar

No, curly brackets are used to group multiple statements and control the flow of execution. For a single statement, it is not necessary.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what does exit() do?

3 Answers   Cadence,


What are variables c?

1 Answers  


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

1 Answers  


what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

1 Answers   IBM,


write a program that finds the factorial of a number using recursion?

13 Answers   Infosys, TATA,


what is diognisis?

1 Answers  


write a function for strtok()??

2 Answers   Verifone,


how to make program without <> in library.

1 Answers   ADITI,


In C language what is a 'dangling pointer'?

1 Answers   Accenture,


What is the diffrent between while and do while statement ?

6 Answers  


What is logical error?

1 Answers  


Describe the order of precedence with regards to operators in C.

1 Answers  


Categories