Sir,please help me out with the output of this programme:-

#include<stdio.h>
#include<conio.h>
void main()
{
int a=18,b=12,i;
for(i=a<b?a:b;a%i||b%i;i--);
printf("%d %d",i);
}

Answer Posted / biren

the answer is 6

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is keyword in c?

600


Explain what are header files and explain what are its uses in c programming?

623


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

1855


what is the basis for selection of arrays or pointers as data structure in a program

3784


What is structure in c language?

615






What is the purpose of the preprocessor directive error?

676


Differentiate Source Codes from Object Codes

815


What is array of structure in c programming?

747


What is #error and use of it?

677


What is #ifdef ? What is its application?

642


What are the 4 types of organizational structures?

621


When do we get logical errors?

633


How can I find out the size of a file, prior to reading it in?

616


can anyone please tell about the nested interrupts?

1674


Can the size of an array be declared at runtime?

602