Skip to content

Instantly share code, notes, and snippets.

@poojarsn
Created July 17, 2020 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poojarsn/31b746d45922d635ca694410db8b963c to your computer and use it in GitHub Desktop.
Save poojarsn/31b746d45922d635ca694410db8b963c to your computer and use it in GitHub Desktop.
Leaq convertible c programming
#include <stdio.h>
short scale3(short x, short y, short z);
int main()
{
printf("Hello World");
short temp;
temp=scale3(2,3,4);
printf("%u",temp);
return 0;
}
short scale3(short x, short y, short z)
{
short t;
t= y+y*9;
t= t+z;
t=t+x+y;
return t;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment