Question: Write a code which will sort 3 variables from smaller to bigger. If you write it using basic if and for statements you will recive
#include "STM32F4xx.h" void SystemInit(). (*((int* ) OXEO OOED88)) I=0x0F00000; int adder(int a, int b); // Created a function to use in main code. int main() { int a=10,b=5,c; c=adder (a,b); // function is called and result is assigned to c. int adder(int a, int b){ // 2 variables are sent to funcion. int temp; // A temporary variable, for adder operation. temp=a+b; return temp; // Temp variable is sent to main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
