Skip to content

Tag Archives: C-Output

Predict the output of below C programs. Question 1: c #include<stdio.h> int main() {     int x = 5, p = 10;     printf("%*d", x, p);       getchar();… Read More
Predict the output of below programsQuestion 1   c int main() {     int i = 0;     while (i <= 4)     {        printf("%d", i);        if (i >… Read More
Predict the output of below programs Question 1 int main() {     unsigned int i=65000;     while ( i++ != 0 );     printf("%d",i);     return 0; } Output:… Read More
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 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