422 views
1 votes
1 votes
 
// Graph class represents a undirected graph
// using adjacency list representation
class Graph
{
    int V;    // No. of vertices
 
    // Pointer to an array containing adjacency lists
    list<int> *adj;

}
 is 'list' a datatype?? where can i study about it??

1 Answer

Best answer
6 votes
6 votes

The list is a data structure, which is part of the STL (Standard Template Library). It's very useful in the Program development and Problem-solving. 

For a better understanding of STL, I will recommend Stephan T. Lavavej video lectures, which he has delivered, at Microsoft's Channel9. Here is the link. Enjoy. 

selected by

Related questions

1 votes
1 votes
3 answers
2
shiva0 asked Apr 3, 2019
447 views
What is the output of the program? int main() { union a { int i; char ch ; }; union a u; u.ch[0] = 3; u.ch = 2; printf("%d, %d, %d", u.ch[0], u.ch , u.i); return 0; }
0 votes
0 votes
0 answers
3
garvit_vijai asked Sep 2, 2018
683 views
Please explain the output for the following program: #include<stdio.h>int main() { int i = 100; int *a = &i; float *f = (float *)a; (*f)++; pri...
1 votes
1 votes
1 answer
4
srestha asked Aug 8, 2018
551 views
#include <stdio.h int main() { long int a = 0x7fffffff * 0x7fffffff; long int b = 0x7fffffff * 0x7fffffffl; printf("a = %ld, b = %ld\n", a, b); return 0; }What will be ou...