Find the output of the following program. #include <stdio.h>int main () {int division = 3;switch(division) {case 1 :printf("1st Division\n" );break;case 2 :printf("2nd Division\n" );break;case 3 :printf("3rd Division\n" );break;default :printf("runner up\n" );}return 0;}
#include<stdio.h>int main(){char *ptr;char string[]="welcome to beyond knowing";ptr = string;ptr+=11;printf("%s",ptr);return 0;}
Find the output #include <stdio.h>int main() {int a[ ] = {1, 2, 3, 4,5};int sum = 0;for(int i = 0; i = 5; i++){sum += a[i];}printf("%d", sum);return 0;}
#include <stdio.h>union Sti{int nu;char m;};int main(){union Sti s;printf("%d", sizeof(s));return 0;}