1.int a=10;
2.int b=20;
3. //write here
4.b=30;
Write code at line 3 so that when the value of b is changed
variable a should automatically change with same value as b.

5.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Given an array A[n+m] of n+m numbers, where A[1] ... A[n] is sorted and A[n+1] ... A[n+m] is sorted. Design a linear time algorithm to obtain A[1...n+m] sorted using only O(1) extra space. Time Complexity of your algorithm should be O(n) and Space Complexity O(1).

0 Answers  


What is the difference between strcpy() and memcpy() function in c programming?

0 Answers  


what is the difference between NULL & NUL keywords in C?

3 Answers  


Write a program to show the workingof auto variable.

2 Answers   Infotech,


Which is the memory area not included in C program? give the reason

0 Answers   IBM, TCS,






Can we change the value of constant variable in c?

0 Answers  


What is spark map function?

0 Answers  


write a C program to print the program itself ?!

16 Answers   TCS,


suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,------dec) we take integer value as an input .question is that the month which we analyz is from 0 to 11 bt if i enter 12 than how he again starts from begning and print jan

1 Answers  


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

0 Answers   Persistent,


Every time i run a c-code in editor, getting some runtime error and editor is disposing, even after reinstalling the software what may be the problem?

2 Answers  


to convert a string without using decrement operater and string functions

1 Answers  


Categories