do u print this format '(((())))'. This brackets is based on
user input like 4 or 5 or 6,without using any loop's?
Answer / ashutosh tiwari
int r;
Void main()
{
scanf("%d",&r);
fun();
}
void fun()
{
static int t = r;
printf("(");
if(--t != 0)
fun();
printf(")");
}
OR
void main()
{
int r,i;
scanf("%d",&r);
i=r;
repeat1:
if(i != 0)
{
printf("(");
i--;
goto repeat1;
}
i=r;
repeat2:
if(i != 0)
{
printf(")");
i--;
goto repeat2;
}
}
Is This Answer Correct ? | 11 Yes | 2 No |
LOGIC OF Bodmas?
Explain how can I open a file so that other programs can update it at the same time?
why should i select you?
writ a program to compare using strcmp VIVA and viva with its output.
What’s a signal? Explain what do I use signals for?
Differentiate abs() function from fabs() function.
20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } Answer:??????
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
what are enumerations in C
Mention four important string handling functions in c languages .
Difference between Shallow copy and Deep copy?
to find the program of matrix multiplication using arrays