Technical Discussion :: C
84. How would you write printf statement without using ";".
Answer:
#include <stdio.h>
int main(){
if(printf("q4 Interview")){
}
}
note that printf returns the value printed to stdout so the above program prints q4 interview
Asked In :: Aricent Syntel Inc.
#include <stdio.h>
int main(){
if(printf("q4 Interview")){
}
}
note that printf returns the value printed to stdout so the above program prints q4 interview