Jump to content

Integer sequence: Difference between revisions

→‎{{header|C}}: being explicitly 32-bit is silly. also a space in control structures (helps distinguish them from functions)
(→‎{{header|C++}}: include cstdint, use uint32_t.)
(→‎{{header|C}}: being explicitly 32-bit is silly. also a space in control structures (helps distinguish them from functions))
Line 13:
int main()
{
uint32_tunsigned int i = 0;
while (1)
{
printf("%u\n", ++i);
Line 28:
int main()
{
for (uint32_tunsigned int i = 1; 1; i++)
printf("%u\n", i);
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.