Question: Below are the C and Java codes for the same programme. Compare the results of both with the reasons. #include #include int x = 5
Below are the C and Java codes for the same programme. Compare the results of both with the reasons.
#include
#include
int x ;
int test int y
x y;
return ;
int main
x x test ;
printfdx;
return ;
import java.util.;
import java.lang.;
import java.io;
class Ideone
public static int x ;
public static int testint y
x y;
return ;
public static void mainString args throws java.lang.Exception
x x test ;
System.out.printlnx;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
