Computer Science, asked by mohantylaxmipriya51, 7 months ago

FIND THE OUTPUT

void main()

{

Int a=253,b,c;

b=a/10;

c=a%10;

cout<<b<<c;

getch();

}​

Answers

Answered by spoorthi120
0

Answer:

Parameters: This method does not accept any parameters.

Return value: This method returns the ASCII value of the key pressed.

Example:

// Example for getch() in C

#include <stdio.h>

// Library where getch() is stored

#include <conio.h>

int main()

{

printf("%c", getch());

return 0;

}

Input: g (Without enter key)

Output: Program terminates immediately.

But when you use DOS shell in Turbo C,

it shows a single g, i.e., 'g'

Important Points regarding getch() method:

getch() method pauses the Output Console untill a key is pressed.

It does not use any buffer to store the input character.

The entered character is immediately returned without waiting for the enter key.

The entered character does not show up on the console.

The getch() method can be used to accept hidden inputs like password, ATM pin numbers, etc.

Example: To accept hidden passwords using getch()

Note: Below code won’t run on Online compilers, but on MS-DOS compilers like Turbo IDE.

pls mark as brainliest and follow me please please plz plz plz plz plz please

Similar questions