Posts

BSc Sem 1 Computer Paper 2017 Answers of 4 B, C, D

Question 4 (B) answer in brief (Any one)                                                                           2 marks 1.        Explain passing pointer as function argument. C programming allows passing a pointer to a function. To do so, simply declare the function parameter as a pointer type. Following is a simple example where we pass an unsigned long pointer to a function and change the value inside the function which reflects back in the calling function − #include <stdio.h> #include <time.h> void getSeconds ( unsigned long * par ); int main () { ...