Tag: programming languages
Questions Related to programming languages
public class test { public static void main(String [] args) { int x = 5; test t = new test(); t.doStuff(x); System.out.print("main x = " + x); } void doStuff(int x) { System.out.print("doStuff x = " + x++); } } What is the result?
__________ pointer is a type of pointer of any data type and generally takes a value as zero
A __________function is used for accessing the non-public members of a class.
The static member functions have a class scope and they have access to the 'this' pointer of the class.