Skip to main navigationSkip to main contentSkip to footer
Wiki Cram
  • Home
  • Blog
Wiki Cram

Author: Anonymous (page 13)

What is wrong with this code for macro? #define doSomething…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
What is wrong with this code for macro? #define doSomething ( x , y ) x + y // this macro adds the two parameters together int m = doSomething( 10, 30 );
Continue reading “What is wrong with this code for macro? #define doSomething…”…

Which of the following printf statements print out the memor…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
Which of the following printf statements print out the memory address that the pointer variable ptr is point at?
Continue reading “Which of the following printf statements print out the memor…”…

What is the output of the following code? #includeint test(i…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
What is the output of the following code? #includeint test(int);int main(int argc, char* argv[]){    int k=35;    k = test(k=test(k=test(k)));    printf(“k=%d\n”, k);    return 0;}int test(int k){    return k++;}
Continue reading “What is the output of the following code? #includeint test(i…”…

Which of the following is a valid and complete function defi…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
Which of the following is a valid and complete function definition?
Continue reading “Which of the following is a valid and complete function defi…”…

Assume you have a FILE pointer named ptr which is pointing t…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
Assume you have a FILE pointer named ptr which is pointing to an opened file. Which of the following statements is the correct way to read in a string?
Continue reading “Assume you have a FILE pointer named ptr which is pointing t…”…

After we open a file with fopen(), what we should do before…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
After we open a file with fopen(), what we should do before writing things to the file?
Continue reading “After we open a file with fopen(), what we should do before…”…

What is the output of this code? #define VALUE 10; int mai…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
What is the output of this code? #define VALUE 10; int main( int argc, char* argv[] ) { int x = VALUE * 2; printf( “%d”, x ); return 0; }
Continue reading “What is the output of this code? #define VALUE 10; int mai…”…

What is the output of the following code? #includeint functi…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
What is the output of the following code? #includeint function(int, int);int main(int argc, char* argv[]){ int a = 25, b = 24 + 1, c; printf(“%d”, function(a, b)); return 0;}int function(int x, int y){ return (x – (x == y));}
Continue reading “What is the output of the following code? #includeint functi…”…

Given this macro:  #define doSomething( x, y ) ( 2 * x – y )…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
Given this macro:  #define doSomething( x, y ) ( 2 * x – y ) What is the value of result after this code?   int result = doSomething( 3, 2 );
Continue reading “Given this macro:  #define doSomething( x, y ) ( 2 * x – y )…”…

What is the output of the following code? #include int fun(i…

Posted on: April 10, 2026 Last updated on: April 10, 2026 Written by: Anonymous
What is the output of the following code? #include int fun(int *num){      return (*num)–;}int main(int argc, char* argv[]){      int num = 16;      for(fun(&num); fun(&num); fun(&num))            printf(“%d “, fun(&num));      return 0;}
Continue reading “What is the output of the following code? #include int fun(i…”…
« Previous page 1 … 11 12 13 14 15 … 89,883 Next page »
Powered by Studyeffect
  • Privacy Policy
  • Terms of Service
Copyright © 2026 WIKI CRAM — Powered by NanoSpace