What is the output from this program?
#include <stdio.h>
void do_something(int *thisp, int that)
{
int the_other;
the_other = 5;
that = 2 + the_other;
*thisp = the_other * that;
}
int main(void)
{
int first, second;
first = 1;
second = 2;
do_something(&second, first);
printf("%4d%4d\n", first, second);
return 0;
}
Answer Posted / srikanth karnati
1,35
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can you call a function, given its name as a string?
Tell us the use of fflush() function in c language?
When should structures be passed by values or by references?
What is difference between main and void main?
write a program to create a sparse matrix using dynamic memory allocation.
write a c program for swapping two strings using pointer
What is the difference between class and object in c?
What are predefined functions in c?
Write a program to maintain student’s record. Record should
not be available to any unauthorized user. There are three
(3) categories of users. Each user has its own type. It
depends upon user’s type that which kind of operations user
can perform. Their types and options are mentioned below:
1. Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record)
2. Super Admin
(Search Record [by Reg. No or Name], View All Records,
Insert New Record, Modify Existing Record, Delete Single Record)
3. Guest
(Search Record [by Reg. No or Name], View All Records)
When first time program runs, it asks to create accounts.
Each user type has only 1 account (which means that there
can be maximum 3 accounts). In account creation, following
options are required:
Login Name: <6-10 alphabets long, should be unique>
Password: <6-10 alphabets long, should not display
characters when user type>
Confirm Password:
Explain low-order bytes.
What is the newline escape sequence?
how to introdu5ce my self in serco
application attempts to perform an operation?
Why is extern used in c?
What are the advantages and disadvantages of a heap?