Arduino in Indian Languages
  • Home
  • Download
  • Sign In
    • Sign In
    • Sign Up


DEFAULT = दिया_गया

The default case of a switch statement. The code in this block is executed if the other cases did not match the variable.

Example

switch (var) {
    case 1:
      //do something when var equals 1
      break;
    case 2:
      //do something when var equals 2
      break;
    default: 
      // if nothing else matches, do the default
      // default is optional
    break;
  } 
	

Have a suggestion for a better local language word for 'DEFAULT'?


Discuss