/*what is the output for*/
void main()
{
int r;
printf("Naveen");
r=printf();
getch();
}
Answers were Sorted based on User's Feedback
Answer / prathiba
its a compile time error.bcoz r is of integer type.
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / srikanth
compile time error..r is of type integer,so the could is wrong
| Is This Answer Correct ? | 3 Yes | 1 No |
main() { char a[4]="HELL"; printf("%s",a); }
void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }
Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.
2 Answers Mentor Graphics, Microsoft,
func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d !\n ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); }
What is data _null_? ,Explain with code when u need to use it in data step programming ?
int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d\n",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p
how to return a multiple value from a function?
What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
#include<stdio.h> void fun(int); int main() { int a; a=3; fun(a); printf("\n"); return 0; } void fun(int i) { if(n>0) { fun(--n); printf("%d",n); fun(--n); } } the answer is 0 1 2 0..someone explain how the code is executed..?