how to print a statement in c without use of console
statement ,with the help of if statement it should print

Answers were Sorted based on User's Feedback



how to print a statement in c without use of console statement ,with the help of if statement it s..

Answer / girish

#include <stdio.h>
void main()
{
if(printf("Hello World"))
}

Is This Answer Correct ?    14 Yes 3 No

how to print a statement in c without use of console statement ,with the help of if statement it s..

Answer / deepanshu kakkar

#include<stdio.h>
void main()
{
if(printf("deepanshu kakkar"));
}

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Interview Questions

what is the significance of static storage class specifier?

0 Answers  


Why do we use c for the speed of light?

0 Answers  


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

0 Answers   TCS,


How to write the code of the program to swap two numbers with in one statement?

2 Answers  


How is pointer initialized in c?

0 Answers  






Can you subtract pointers from each other? Why would you?

0 Answers  


I need testPalindrome and removeSpace #include <stdio.h> #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, &copyCount); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

0 Answers  


what would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }

1 Answers  


write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument .

1 Answers   Subex,


What is encapsulation?

2 Answers  


I heard that you have to include stdio.h before calling printf. Why?

0 Answers  


What are the types of bitwise operator?

0 Answers  


Categories