how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--);
Answer Posted / abhishek roy
Yes there is syntax error in printf statement but if write
printf("%d",i--)then The output for the given for loop is
5 3 1.
it is 100 % write....
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is difference between union and structure in c?
hi send me sample aptitude papers of cts?
What is strcpy() function?
Differentiate between a for loop and a while loop? What are it uses?
Explain the difference between malloc() and calloc() function?
What are external variables in c?
Is fortran still used in 2018?
Can you please explain the difference between strcpy() and memcpy() function?
How can I manipulate individual bits?
What is a method in c?
What does nil mean in c?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What are the types of data structures in c?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
What is malloc() function?