writte a c-programm to display smill paces

Answers were Sorted based on User's Feedback



writte a c-programm to display smill paces..

Answer / anand_cool

#include<stdio.h>
void main()
{
int n=1;
for(;;)
{
printf("%c",n);
}
}

Is This Answer Correct ?    7 Yes 1 No

writte a c-programm to display smill paces..

Answer / ricky dobriyal

#incude<stdio.h>
void main()
{
int ricky_dobriyal=1;
while(1)
{
printf("%c",ricky_dobriyal);
}
}

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Code Interview Questions

How can you relate the function with the structure? Explain with an appropriate example.

0 Answers  


void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }

1 Answers  


What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }

1 Answers  


How will you print % character? a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)

4 Answers   HCL,


pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"

2 Answers  






Write a single line c expression to delete a,b,c from aabbcc

2 Answers   Microsoft,


main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000

3 Answers   HCL,


main() { extern out; printf("%d", out); } int out=100;

1 Answers  


void main() { int i=i++,j=j++,k=k++; printf(“%d%d%d”,i,j,k); }

1 Answers  


void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }

2 Answers  


#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 Answers  


main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(“%d” ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(“%d ” ,*p); p++; } }

1 Answers  


Categories