NEW AND EXCLUSIVE : GO TO THE ONLINE TEST PAGE AND TEST YOURSELF THROUGH EXAMINATION

What will be the Output Of the Following C-codes?

Q.1

#include<stdio.h>
int main(){
char p[]="String";
if(p=="String"){
printf("Pass 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
 else{
printf("Fail 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
return 0;
}





Q.2

func(int a,int b);
void main()
{
int i=7,j=8;
printf("%d\n",func(i,j));
}
func(int a,int b)
{
a=a-b;
b++;
return(b||a+--b);
}

Let me learn what you think :)