#include stdio.hint main(){printf("%d",printf("STAR WARS"));return 0;}
#include stdio.hvoid solve() {char ch[10] = "abcdefghij";int ans = 0;for(int i = 0; i 10; i++) {ans += (ch[i] - 'a');}printf("%d", ans);}int main() {solve();return 0;}
#include stdio.hvoid foo(int*);int main(){int i = 10;foo((&i)++);}void foo(int *p){printf("%d\n", *p);}
what will be the output of the following code snippet?a = [1, 2, 3, 4]b = [3, 4, 5, 6]c = [x for x in a if x not in b]print(c)
What will be the output of the following program
#include "stdio.h"int main(){float a = 123/100;printf("%f", a);return 0;}
#includestdio.hint main() {int num1=10 , num2=20;int *p=&num1, *q=&num2;*p++=*q++;printf("%d%d",num1,num2);return 0;}What is the output?
def g(m,n):res = 0while m = n:(res,m) = (res+1,m/n)return(res)