• reshown by
1,921 views

1 Answer

0 0 votes
a is printed infinite times because all the time loop check the address part of first node

which is always true
Position:
Show:

Related questions

9 9 votes
6 6 answers
1.0k
1.0k views
GO Classes asked Jul 25, 2025
1,008 views
#include <stdio.h void fun() { static int count = 0; count++; printf("%d ", count); } int main() { for (int i = 0; i < 3; i++) fun(); return 0; }What is the output of the...
6 6 votes
3 3 answers
705
705 views
GO Classes asked Jul 25, 2025
705 views
Given the pseudocode below for the function remains(), which of the following statements is true about the output, if we pass it a positive integer $n>2$ ? int remains(in...
7 7 votes
4 4 answers
768
768 views
GO Classes asked Jul 19, 2025
768 views
int arr[ ]={1, 2, 3, 4} int count; incr( ) {return ++count;} main( ) { arr[count++]=incr( ); printf("arr[count]=%d\n", arr[count]); }The value printed by the above progra...
12 12 votes
4 answers 4 answers
1.0k
1.0k views
GO Classes asked Jun 23, 2025
1,005 views
#include <stdio.h int x = 180; void func() { static int x = 10; x += 5; printf("%d ", x); } int main() { int x = 1; printf("%d ", x); func(); { int x = 50; x++; printf("%...