Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Programming:
Recent questions tagged programming
1
votes
2
answers
61
Loops (while and for)
In the picture below: Can anyone explain to me why while' loop starting from 2 but in the case of for' loop it is starting from 1 (although i++ is available for both in Program 1 and Program 2) and also in the case of while' loop the outputs are ... ' loop the outputs are same although in Program 2 it is post increment (i++) and in Program 4 it is pre increment (++i).
In the picture below:Can anyone explain to me why ‘while’ loop starting from 2 but in the case of ‘for’ loop it is starting from 1 (although i++ is available for ...
Gopal6854
555
views
Gopal6854
asked
Jul 29, 2023
Programming in C
programming
loop
+
–
0
votes
1
answer
62
a sequential access file has a fixed size of 25 byte records. What is the logical location of the first byte of record 5?
Harsh007
1.0k
views
Harsh007
asked
Jul 19, 2023
Programming in C
programming
+
–
0
votes
0
answers
63
ISRO2020-62
#include int main() { int x; char *ptr; x=622,100,101; printf("%d",(*(char *)&x)*(x%3)); return 0; } In this question what is the meaning of “ *(char *)&x “ ? please explain it.
#includeint main(){ int x;char *ptr;x=622,100,101;printf("%d",(*(char *)&x)*(x%3));return 0; }In this question what is the meaning of “ *(char *)&x “ ? please ...
Ray Tomlinson
857
views
Ray Tomlinson
asked
Jul 5, 2023
Programming in C
isro-2020
programming-in-c
pointers
programming
+
–
Page:
« prev
1
2
3
4
5
6
7
8
...
32
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register