Sorry! Posting Assignment is allowed only for commercial accounts.
#include stdio.hvoid main(){if(printf("Happy learning!"))}
#include stdio.hint main(){ int x = 50, *ptr; ptr = &x; *ptr = 30; printf("%d", x);}
#include stdio.hvoid swap(int *a, int *b) { int t = *a; *a = *b; *b = t;}void solve() { int a = 3, b = 5; swap(&a, &b); printf("%d %d", a, b);}int main() { solve(); return 0;}