Quiz 2012 C Quiz
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int i=5;
clrscr();
printf("\t%d\t %d \t %d\t%d",++i,i,i--,i);
getch();
}
void main()
{
char c='0';
printf("%d %d",sizeof(char),sizeof(c));
}
void main()
{
printf("\the \backwater \is very \famous");
}
void main()
{
int *p,b[3]={10,20,30};
p=b;
clrscr();
printf("\n%d %d",sizeof(p),sizeof(*p));
printf("\n%d",b[0]);
printf("\n%d %d %d",*p,*(p++),++(*p));
getch();
}
void main()
{
printf("main:");
if(main)
{
printf("display");
}
main();
}
void main()
{
char s1='1';
clrscr();
if(1==s1)
printf("both are Same()");
}
void main()
{
clrscr();
if(printf("hello")=="hello")
printf("If condition is checked");
}
void main()
{
int a=64;
clrscr();
a=a>>3>>1;
printf("%d",a);
getch();
}
void main()
{
int dec,j,c,bit[16];
clrscr();
// printf("Decimal:");
// scanf("%d",&dec);
dec=256;
for(c=0;dec>=1;c++)
{
bit[c]=dec%2;
dec=dec/2;
}
c=c-1;
for(;c>=0;--c)
printf("%d ",bit[c]);
getch();
}
void main()
{
int square(int);
int binary=111;
char binary1;
int count,i,sum=0,t=0;
clrscr();
strcpy(binary1,binary);
count=strlen(binary1);
for(i=count-1;i>=0;i--)
{
t=binary/2;
printf(" %d",t);
if(t)
sum+=square(count);
}
printf("Decimal value %d",sum);
getch();
}
int square(int c)
{
int s=0;
for(;c>=1;--c)
{
s+=2*2;
}
return(s);
}
void main()
{
long double far *s1,*s2,*s3,*s4;
clrscr();
printf("%d %d %d",sizeof(s1),sizeof(s2),sizeof(s3),sizeof(s3));
}
void main()
{
int x=40;
{
int x=20;
printf("\n %d",x);
}
printf("%d",x);
}
void main()
{
extern int i;
i=20;
printf("%d",sizeof(i));
}
extern int fun(int);
void main()
{
int a ;
a=fun(3);
printf("%d",a);
}
int fun(aa)
int aa;
{
return(aa);
}
f(struct emp);
struct emp
{
char name[20];
int age;
};
main()
{
struct emp e={"ste",13};
f(e);
}
f(struct emp ee)
{
printf("\n %s %d",ee.name,ee.age);
}
{
t=binary/2;
printf(" %d",t);
if(t)
sum+=square(count);
}
printf("Decimal value %d",sum);
getch();
}
int square(int c)
{
int s=0;
for(;c>=1;--c)
{
s+=2*2;
}
return(s);
}
void main()
{
long double far *s1,*s2,*s3,*s4;
clrscr();
printf("%d %d %d",sizeof(s1),sizeof(s2),sizeof(s3),sizeof(s3));
}
void main()
{
int x=40;
{
int x=20;
printf("\n %d",x);
}
printf("%d",x);
}
void main()
{
extern int i;
i=20;
printf("%d",sizeof(i));
}
extern int fun(int);
void main()
{
int a ;
a=fun(3);
printf("%d",a);
}
int fun(aa)
int aa;
{
return(aa);
}
f(struct emp);
struct emp
{
char name[20];
int age;
};
main()
{
struct emp e={"ste",13};
f(e);
}
f(struct emp ee)
{
printf("\n %s %d",ee.name,ee.age);
}
void fun()
{
there:
printf("ddsdf");
}
void main()
{
int i=1;
while(i<=5)
if(i<=5)
goto there;
}
void main()
{
int i=2;
switch(i)
{}
}
void main()
{
int i=1;
switch(i)
{
printf("hello");
case 1:
printf("Stev");
break;
case 2:
printf("Dong lee");
break;
}
}
{
there:
printf("ddsdf");
}
void main()
{
int i=1;
while(i<=5)
if(i<=5)
goto there;
}
void main()
{
int i=2;
switch(i)
{}
}
void main()
{
int i=1;
switch(i)
{
printf("hello");
case 1:
printf("Stev");
break;
case 2:
printf("Dong lee");
break;
}
}
If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to my regular Email Updates. Subscribe Now!
17 comments:
I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog.
Data Science training in marathahalli
Data Science training in btm
Data Science training in rajaji nagar
Data Science training in chennai
Data Science training in electronic city
Data Science training in USA
Data science training in pune
Data science training in kalyan nagar
I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
java training in chennai | java training in bangalore
java online training | java training in pune
The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
Devops training in sholinganallur
Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!
Blueprism training in Pune
Blueprism training in Chennai
I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article.
angularjs Training in bangalore
angularjs Training in btm
angularjs Training in electronic-city
angularjs online Training
angularjs Training in marathahalli
Inspiring article, all your points are worth to learn. Cheers and thanks for the clear path.
Selenium Training in Chennai
software testing selenium training
ios developer course in chennai
Digital Marketing Course in Chennai
dot net course
dot net coaching centers in chennai
c# training in chennai
Big Data Training in Chennai
I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community.
devops online training
aws online training
data science with python online training
data science online training
rpa online training
I am very happy to visit your blog. This is definitely helpful to me, eagerly waiting for more updates.
AWS Training in Chennai
Blue Prism Training in Chennai
I like that your article. i have reading here all post. i am impressed. thank you.
i have reading here all post. i am impressed. thank you.
I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article.
web designing training in chennai
web designing training in omr
digital marketing training in chennai
digital marketing training in omr
rpa training in chennai
rpa training in omr
tally training in chennai
tally training in omr
Thanks for sharing this wonderful content.its very useful to us.This is incredible,I feel really happy to have seen your web page.I gained many unknown information, the way you have clearly explained is really fantastic.keep posting such useful information.
data science training in chennai
data science training in tambaram
android training in chennai
android training in tambaram
devops training in chennai
devops training in tambaram
artificial intelligence training in chennai
artificial intelligence training in tambaram
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging
angular js training in chennai
angular js training in porur
full stack training in chennai
full stack training in porur
php training in chennai
php training in porur
photoshop training in chennai
photoshop training in porur
Inspiring article, all your points are worth to learn. Cheers and thanks for the clear path.
data science training in chennai
data science training in annanagar
android training in chennai
android training in annanagar
devops training in chennai
devops training in annanagar
artificial intelligence training in chennai
artificial intelligence training in annanagar
Thanks for the post. It was very interesting and meaningful. I really appreciate it! Keep updating stuff like this.
DevOps Training Institute in Pune
mmorpg oyunları
Instagram takipçi satın al
Tiktok jeton hilesi
tiktok jeton hilesi
antalya saç ekimi
İNSTAGRAM TAKİPÇİ SATIN AL
Instagram Takipçi Satın Al
metin2 pvp serverlar
instagram takipci satın al
perde modelleri
numara onay
mobil ödeme bozdurma
nft nasıl alınır
ankara evden eve nakliyat
TRAFİK SİGORTASI
dedektör
web sitesi kurma
AŞK KİTAPLARI
smm panel
smm panel
iş ilanları
instagram takipçi satın al
hirdavatciburada.com
beyazesyateknikservisi.com.tr
servis
tiktok jeton hilesi
Have any question? Feel Free To Post Below: