int x=4;
char c=(char)x;
it would not print '4' on screen. It would display the ASCII corresponding value of '4'.
I tried this way...
int x=48;
string str =x.ToString();
char c=str[0];//for printing 4;
char c1=str[1];// for printing 8;
Subscribe to:
Post Comments (Atom)
Call a function in child component from parent component in React
Consider the following parent component class Parent extends React.Component { constructor(props) { super(props); thi...
-
The process of replacing a module with generic and mostly empty object, called a mock. Advantages: Isolates our code from its dependen...
-
When we create a class or struct, its constructor is called. Constructor will have same name as a class or struct and is usually used to ini...
-
I have an Address object from my user interface like below Address:{address1:"Franklin",address2:"Warrensburg",adress...
No comments:
Post a Comment