What is the output of the following program?
struct node
{
int data;
struct node *next;
};
main()
{
struct node N1, N2, N3;
N1.data = 1; N2.data = 10; N3.data = 100;
N1.next = &N2; N2.next = &N3; N3.next = &N1;
printf("%d, %d", N2.next -> data, N2.next -> next -> data);
}
Consider the following postfix expression: 5, 6, 2, +, *, 12, 4, /, –.
What is the evaluated output of the above expression using stack?
Which of the following permutations can be obtained in the same order using stack, assuming that the input sequence is given as E, F, G, H, I:
push(24), push(22), a=pop(), push(25), push(32), pop( ), b=pop().
Here, push() and pop() represent the push and pop operation of the stack, and ‘a’, and ‘b’ are two variables.
What will be the value of |a – b|?
Una carga C se coloca en un campo eléctrico uniforme de N/C dirigido hacia la derecha. ¿Cuál es la magnitud y dirección de la fuerza eléctrica sobre la carga?
Señala las imágenes que representan adecuadamente el proceso de carga, ya sea por contacto o por inducción.
ESTADO INICIAL: La varilla conductora 1 se encuentra cargada positivamente, mientras que la varilla conductora 2 está descargada (neutra).
¿Cuál de las siguientes combinaciones de unidades es equivalente a la unidad de energía potencial electrostática (J) en el Sistema Internacional de Unidades (SI)?