Predict the output for this program int main ( ) { printf (" %d ", printf (" %d %d ",5,5)& printf ( "%d %d ",7,7)); return 0; } 1 7 7 5 5 7 ... Read More
What is the output of the following program? int main ( ) { printf (" %d %d ", printf (" %d %d ",7,7), printf (" %d %d ",5,5)); return 0; } 7 7 5 5 3 3 ... Read More
Difference between Normal function and Macro Funcion Normal function is defined : return_type function_name(arguments) { //coding } Macro function: #define funtion_name(arguments) coding Differ... Read More
Predict The Output: int main() { return printf("shark "); } int x=main(); Don't think that it will result in compilation error. It will run perfe... Read More
73 Predict the Output: int main() { if (1|| printf ( "Logical Programs" )) printf ( "C Interview Questions" ); return 0; ... Read More
47 #define function(a) printf("Answer: %d",a) int main() { extern int a; printf("%d",printf("%d",function(scanf(... Read More
33 int main() { int a; scanf("%d",&a)+1; a=printf("%d",a++)+a; printf("%d",a); } if you give input as '1 ... Read More
30 #include int main() { int a; printf("enter no."); scanf("%d",&a)+1; a=printf("%d",a++)+a; printf("%d... Read More
Scanf inside printf #include int main() { int a,b; printf("%d",scanf("%d %d",&a,&b)); } Output: 2 Logic: To know what'll return ... Read More
18 #include main() { int a=1; void function(int ,int ,int ); //Function Declaration function(++a,a,a++); //function call } void f... Read More
Scanf Returns a value #include main() { int b,a; printf("Enter the Inputs"); a=scanf("%d %d",&a,&b); printf("\n a value is :\t... Read More
Printf() as a argument of another printf() #include main() { printf("%d",printf("selva")); } output: selva 5 for explanation see last post. If you can't able ... Read More
Printf( ) function returning value. Printf function returns "Number Of successful characters printed by printf function which includes white space ". For eg: a=print... Read More