Skip to content

Quiz Lookup

  • Home
  • Blog

Blog

What will be the output of the following code snippet? #incl…

What will be the output of the following code snippet? #include int main() { char str1[] = “Hello”; char str2[] = “World”; char str3[12]; sprintf(str3, “%s %s”, str1, str2); printf(“%s\n”, str3); return 0; }

Published November 30, 2024
Categorized as Uncategorized

What will be the output of the following code snippet?  #inc…

What will be the output of the following code snippet?  #include struct point { int x; int y; }; void doSomething(struct point *p) { p->x = 10; p->y = 20; } int main() { struct point p = {1, 2}; doSomething(&p); printf(“%d %d\n”, p.x, p.y); return 0; }

Published November 30, 2024
Categorized as Uncategorized

What is the purpose of the following code snippet? #include…

What is the purpose of the following code snippet? #include int doSomething(char *str) { int i = 0; while (*str++) { i++; } return i; } int main() { char str[] = “Hello”; printf(“%d\n”, doSomething(str)); return 0; }

Published November 30, 2024
Categorized as Uncategorized

The function fscanf writes formatted output to a file.

The function fscanf writes formatted output to a file.

Published November 30, 2024
Categorized as Uncategorized

How do you return a structure from a function?

How do you return a structure from a function?

Published November 30, 2024
Categorized as Uncategorized

How do you pass a structure to a function?

How do you pass a structure to a function?

Published November 30, 2024
Categorized as Uncategorized

Which function is used to check for the end of a file?

Which function is used to check for the end of a file?

Published November 30, 2024
Categorized as Uncategorized

The function fread reads a block of data from a file.

The function fread reads a block of data from a file.

Published November 30, 2024
Categorized as Uncategorized

Structures can be passed to functions by value only.

Structures can be passed to functions by value only.

Published November 30, 2024
Categorized as Uncategorized

The function fgets reads a line of text from the standard in…

The function fgets reads a line of text from the standard input.

Published November 30, 2024
Categorized as Uncategorized

Posts pagination

Newer posts Page 1 … Page 34,221 … Page 74,441 Older posts
Powered by Studyeffect
  • Privacy Policy
  • Terms of Service
Quiz Lookup
Proudly powered by WordPress.