ANSWERS
1.DANGLING POINTER
- Dangling pointers arise when an object is deleted or de-allocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the de-allocated memory.
- In short pointer pointing to non-existing memory location is called dangling pointer.
2.VOLATILE KEYWORD
C's volatile keyword is a qualifier that is applied to a variable when it is declared. It tells the compiler that the value of the variable may change at any time--without any action being taken by the code the compiler finds nearby. The implications of this are quite serious.
3.DIFFERENCE BETWEEN ABS() AND FABS() FUNCTIONS
abs() is used for Integer values whereas fabs() is used for floating type data. The C library function int abs(int x) returns the absolute value of int x. ... The C library function double fabs(double x) returns the absolute value of x.
4.WILD POINTER
Uninitialised pointers are known as wild pointers because they point to some arbitrary memory location and may cause a program to crash or behave badly. Please note that if a pointer p points to a known variable then it's not a wild pointer.
5.CYCLIC NATURE OF DATATYPES IN C
In C some data types shows one special properties that when we assign a value beyond range of that data type then it will not any compiler error but assign a number according to some cyclic order. This property is known as cyclic nature of data type
IF YOU WANT ANSWERS OF SOMETHING RELATED TO TECH PLEASE POST IT IN THE COMMENT..😊😅
0 Comments
Post a Comment