πŸ“Š C Programming
Q. What is the output of the following code?
Code:
#include
void main()
{
int s=0;
while(s++<10)>
# define a 10
main()
{
printf(“%d..”,A.;
foo();
printf(“%d”,A.;
}
void foo()
{
#undef a
#define a 50
}
  • (A) 0
  • (B) 10..10
  • (C) 10..50
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
177
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
82%
Success Rate