#include<stdio.h>#include<stdlib.h>main(){ int *a; a=(int*)malloc(sizeof(int)); *a=100; printf("*a%d",*a); free(a); a=(int*)malloc(sizeof(int)); *a=200; printf("a%p",a); *a=200; printf("a%d",*a);}
#include <stdio.h>int func (int a){ int b; return b;}int main(){ int c; func (c);}int d;
#include <stdio.h>int x = 0;int f(){ if (x == 0) return x + 1; else return x - 1;}int g(){ return x++;}int main(){ int i = (f() + g()) | g(); //bitwise or int j = g() | (f() + g()); //bitwise or}
#include <stdio.h>int x = 0;int f(){ if (x == 0) return x + 1; else return x - 1;}int g(){ return x++;}int main(){ int i = (f() + g()) || g(); int j = g() || (f() + g());}
#include <stdio.h> //Program 1int main(){ int a; int b; int c;}#include <stdio.h> //Program 2int main(){ int a; { int b; } { int c; }}
A. public class Circle implements Shape { private int radius; }B. public abstract class Circle extends Shape { private int radius; }C. public class Circle extends Shape { private int radius; public void draw(); }D. public abstract class Circle implements Shape { private int radius; public void draw(); }E. public class Circle extends Shape { private int radius; public void draw() { /* code here */ } }F. public abstract class Circle implements Shape { private int radius; public void draw() { /* code here */ } }
struct temp{ int a : 1; int b : 2; int c : 4; int d : 4;}s;