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 |
what does exit() do?
What are variables c?
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
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
write a program that finds the factorial of a number using recursion?
what is diognisis?
write a function for strtok()??
how to make program without <> in library.
In C language what is a 'dangling pointer'?
What is the diffrent between while and do while statement ?
What is logical error?
Describe the order of precedence with regards to operators in C.