Ques 1 Storage Class
What is the output of following Code?
#include<stdio.h>
static char a='a';
int main()
{
a='c';
int i;
for(int i=0;i<6;i++)
{
static char a='a';
printf("%c",a++);
}
}
Ques 2 Storage Class
What is the output of following Code?
#include<stdio.h>
extern char name[20];
int main()
{
char name[]="Scode";
printf("%s",name);
}
char name[20]="Small Code";