#include<stdio.h>  int main(){  int a=5;  static int b=a;  printf("%d %d",a,b);  return 0;  } | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

#include<stdio.h>  int main(){  int a=5;  static int b=a;  printf("%d %d",a,b);  return 0;  }

it's in C language it's showing compilation error why?

25th Dec 2016, 7:49 AM
Arpitha G R
Arpitha G R - avatar
6 Answers
0
that's c++
25th Dec 2016, 8:24 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
but why should it's how compilation error?
25th Dec 2016, 9:12 AM
Arpitha G R
Arpitha G R - avatar
0
Hello
25th Sep 2018, 6:40 AM
Vishal Singh
25th Sep 2018, 6:41 AM
Vishal Singh
0
you should write prinf("%d %d", &a, &b);
25th Sep 2018, 6:54 AM
paras jain
paras jain - avatar
- 1
700030
25th Sep 2018, 6:41 AM
Vishal Singh