About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Tuesday 16 May 2017

PCD Assignment-IV for III I.A.

1. Write a c program to read and display 'n' students information(roll no, name and marks) using    
    arrays of structure.

2. Discuss 'nested structure' with example.

3. What is 'typedef statement'?Give examples.

4. What is file? Discuss defining, opening and closing a file with syntax and example.

5. Discuss the following "File Manipulation Functions" with syntax and examples.
    getc() and putc()
    getw() and putw()
    fscanf() and fprintf()
    gets() and puts()

6. What is pointer? Discuss its declaration and initialization with syntax and examples.

7. What is dynamic memory allocation? Explain the following functions with example.
     malloc(), calloc(), realloc(), free()

8. List and explain non-primitive data structures. (stack,queue,linked list, tree and graph)

9. What are preprocessors? list and explain 3 types.





Tuesday 2 May 2017

One must know the answers for these questions of PCD

Know the following:

What are loop statements? 
What is while loop?
What is do-while loop?
What is for loop?
What is break statement?
What is continue statement?
What is goto statement?
What is an array?
What is 1D array?
What is 2D array?
What is string?
What is user defined function?
What are the differences between call by value and call by reference methods?
What is recursive function?
What is structure?
How to define structure and structure variables?
What are the differences between structure and array?
String handling functions.


Important programs for the practice:
To check, whether the number is Palindrome or not palindrome.
To find factorial of 'n' number.
To find sum and average of 1 to n numbers.
To check, whether the number 'n' is prime or not prime.
To find length of string without using built-in function.
To read and display Students Information(roll no, name, marks) using structure variable.



Write user defined function to find factorial of 'n' i.e. fact(n)
Write recursive function to find factorial of 'n' i.e. fact(n)
Write user defined function to find factorial of 'n' i.e. isprime(n)
C program to swap contents of two variables using user defined function using call by reference method.