#include<stdio.h>int main(){int i=3, *j, k;j = &i;printf("%d\n", i**j*i+*j);return 0;}
What will be the output of the following program?#include <stdio.h >void m(int a){printf("sookshmas ");}void m( double a ){printf(" beyond knowledge ");}void main(){m(4)}
#include <stdio.h>void 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;}
#include <stdio.h>void solve() {int first = 10, second = 20;int third = first + second;{int third = second - first;printf("%d ", third);}printf("%d", third);}int main() {solve();return 0;}
#include <stdio.h>int main() {int a[] = {1, 2, 3, 4};int sum = 0;for(int i = 0; i < 4; i++) {sum += a[i];}printf("%d", sum);return 0;}