1,584 views
1 1 vote

What is the output for this code ?

Please log in or register to answer this question.

Position:
Show:

Related questions

16 16 votes
2 2 answers
669
669 views
GO Classes asked Jul 2
669 views
Assume:struct Student { double gpa; }; struct Student alice; struct Student *sptr = &alice;Which of the following correctly assigns $\texttt{4.0}$ to $\texttt{alice.gpa}$...
11 11 votes
2 2 answers
496
496 views
GO Classes asked Jul 1
496 views
What is the output of the following code?#include <stdio.h void func(int a, int *bptr) { a = 42; *bptr = 42; return; } int main(void) { int x = 100, y = 100; func(x, &y);...
7 7 votes
3 3 answers
387
387 views
GO Classes asked Jun 30
387 views
What is the output of the following code?#include <stdio.h struct Student { int roll; int marks; }; int main() { struct Student s[3] = { {1, 50}, {2, 60}, {3, 70} }; stru...
6 6 votes
2 2 answers
329
329 views
GO Classes asked Jun 30
329 views
What will happen when the following code is compiled?#include <stdio.h struct Node { int data; }; int main() { struct Node n = {25}; struct Node *p = &n; printf("%d", *p....