Skip to content

Category Archives: Program Output

Predict the output of below programs Question 1   c int main() {     while(1){         if(printf("%d",printf("%d")))             break;         else             continue;     }     return 0; } Output: Can’t be predictedExplanation: The condition in… Read More
Predict the output of below programs  Question 1   c #include‹stdio.h› int main() {     struct site     {         char name[] = "GeeksforGeeks";         int no_of_pages = 200;     };… Read More
Predict the output of the below program. Question 1  c #include <stdio.h> int main() {   printf("%p", main);   getchar();   return 0; } Output: Address of function main. Explanation:… Read More
Predict the output of below programs. Question 1  c #include<stdio.h> char *getString() {     char str[] = "Will I be printed?";        return str; } int main() {… Read More
Predict the output of below programs.  Question 1  c #include<stdio.h> int main() {    int n;    for(n = 7; n!=0; n--)      printf("n = %d", n--);    getchar();… Read More
Predict the output of the below program.  C++ #include <iostream> using namespace std;   int main() {     int x = 5;     int * const ptr… Read More
Predict the output of the below program   C++ #include <iostream> using namespace std;   #define square(x) x*x   int main() {   int x;   x… Read More
Predict the output of below program #include<stdio.h> int main() {  char *ptr = "geeksforgeeks";  printf("%c\n", *&*&*ptr);      getchar();  return 0; } Output: g Explanation: The… Read More

Start Your Coding Journey Now!