Computer Science, asked by sudhanshu6521, 6 months ago

a)
class S1
{
static
function 1(int x)
{
return x * 5.5;
}
public static void main()
{
ans;
ans = function 1(2);
System.out.println(ans);
}
Output:​

Answers

Answered by Anonymous
1

Answer:

#include <iostream>

using namespace std;

class Test

{

static int x;

public:

Test() { x++; }

static int getX() {return x;}

};

int Test::x = 0;

int main()

{

cout << Test::getX() << " ";

Test t[5];

cout << Test::getX();

}

Answered by adarshsingh4882
0

Answer:

mat lab kuch de irubriine

Similar questions