22 matrix with 33 matrix multiplication?
It is not possible. The number of columns in the first matrix must be the same as the number of rows in the second.
That is, matrices, X (kxl) and Y (mxn) can only be multiplied [in that order] if l = m.
How do you pass command line arguments using turbo in c compiler?
In the Options menu the Arguments command.
How do you write a C program to find the GCD of two given integers using non recursive functions?
Use the following function:
int gcd (int a, int b) {
while (b != 0) {
a %= b;
a ^= b ^= a ^= b;
}
return a;
}
Note that a ^= b ^= a ^= b is an efficient method of swapping two values.
How do you get a random number from a group of numbers in C?
Random numbers cannot be generated programatically. For pseudo-random numbers use function 'rand'.
Explain how do you increase the cohesiveness of a group structure?
Some good ways to increase the cohesiveness of a group is to use team building exercises. You can start your meeting with these to improve each group session.
Assembly language is a low level language where each statement (mostly) corresponds with one machine instruction. Higher level languages, such as C and FORTRAN, generate multiple machine instructions for each statement.
What is the difference between passing an array and passing single value data to a function?
Passing a single value to a function is often just a simple integer. But passing an array, character string or other data structure is typically "pass by reference", or in other words, the calling statement will 'point to' the place in memory where the data structure resides.
When a function is called using a pointer to a data structure, both the calling environment and the called function are referencing the same data; any changes made to the data in the structure by the function will have changed the data that the original calling environment sees.
However, when a value is passed to a function, the function creates it's own copy of the value, and can change it in any way without changing the original value.
What is the practical application for a binary converter?
The reason that binary trees are used more often than n-ary trees for searching is that with every contract with an n-ary tree you can eliminate most of it.
An object is the most primitive element of a program written in the OOP language.A method of an object defines the set of operations that the object will execute when a message corresponding to the method is received by the object.The binding of a message to an method is dynamic. The entire collection of methods of an object is called the "message interface" or " message protocol".
The system of pathways used for communication and the protocol and methods used for transmission?
bus
A pointer holds a memory address, from 0 to the upper limit of your memory (in 32 bit addressing this is up to 2^32, 64 bit is up to 2^64 bytes). So in math terms, a pointer could be considered a non-negative integer.
However this is not the same as the integer type used in C and other languages, which refers to how the data at that memory address (the raw bits) is interpreted by the system.
So the expression "int *x;" declares a pointer to an integer, but x is a memory address, not a literal C-style integer. The value pointed to by x, however, will be interpreted as a literal C-style integer.
It may be easier to see using a pointer to a char:
char character = 'C';
char *pointerToCharacter = character;
In this case, character is a standard char variable, and pointerToCharacter is a pointer (which is a memory address) that points to the location in memory of a character.
#include<stdio.h>
#include<conio.h>
voidmain()
{
char n[10] ,total;
float a,b,c,d,e,average;
printf("enter marks of five subject");
scanf("%f%f%f%f%f",&a,&b,&c,&d,&e);
if(a>35&&b>35&&c>35&&d>35&&e>35)
printf("congratulation you have passed");
average=total%5
if(average>75)
printf(" %f is distictiona",average);
else
if(average>60)
printf("%f=first devision",average);
else
if(averagea>45)
printf("%f=second devision",average);
else
printf("third devisiona");
getcha();
}
Algorithm for addition of two polynomials using linked list?
Let p and q be the two polynomials represented by the linked list. 1. while p and q are not null, repeat step 2. 2. If powers of the two terms ate equal then if the terms do not cancel then insert the sum of the terms into the sum Polynomial Advance p Advance q Else if the power of the first polynomial> power of second Then insert the term from first polynomial into sum polynomial Advance p Else insert the term from second polynomial into sum polynomial Advance q 3. copy the remaining terms from the non empty polynomial into the sum polynomial.
Mov ax @ data ; ax is initialized with data
mov ds ax ; ax is moved into ds
mov cx 0005h ; cx is initialized to 5
lea si a1 ; si is having lead e.a of a1
lea di a2; di is having lead e.a of a2
add si 0004
again: mov al[si]
mov [di]al ; al is moved into di
dec si
inc di
loop again
int 3 ; interrupt
end
Call by value essentially passes a copy of an object's value whereas call by reference essentially passes the object itself. Pass by reference is the preferred method whenever possible as call by value will automatically invoke the object's copy constructor, which is often unnecessary, especially if the object is not affected by the function call (pass by constant reference).
What is time complexity to delete a node in singly linked list?
Time complexity to locate a node in a list of n nodes is O(1) at best (first node), O(n) at worst (last node) and O(n/2) on average. Once located, deleting a node takes constant time O(1).
What are showing statements in grammar?
In writing, there is a difference between telling statements and showing statements. A telling statement states a fact, such as that it was cold. A showing statement would illustrate that by, for example, describing how everyone was shivering.